mirror of https://github.com/perkeep/perkeep.git
sorted: more tests
Adding this particular case, because I suspect it demonstrates a problem with postgresql. Change-Id: Ia1ffe2f0a27dede579ed652b9f614cd69adc4418
This commit is contained in:
parent
977564f979
commit
e687136b36
|
@ -62,6 +62,12 @@ func TestSorted(t *testing.T, kv sorted.KeyValue) {
|
|||
testEnumerate(t, kv, "d", "")
|
||||
testEnumerate(t, kv, "d", "e")
|
||||
|
||||
// Verify that < comparison works identically for all DBs (because it is affected by collation rules)
|
||||
// http://postgresql.1045698.n5.nabble.com/String-comparison-and-the-SQL-standard-td5740721.html
|
||||
set("foo|abc", "foo|abcv")
|
||||
testEnumerate(t, kv, "foo|", "", "foo|abcv")
|
||||
testEnumerate(t, kv, "foo|", "foo}", "foo|abcv")
|
||||
|
||||
// Verify that the value isn't being used instead of the key in the range comparison.
|
||||
set("y", "x:foo")
|
||||
testEnumerate(t, kv, "x:", "x~")
|
||||
|
|
Loading…
Reference in New Issue