tests: Fix ImapDB test after C.UTF-8 change
You can test that this should be the correct order by adding a line for
each on a file and then running
```
$ cat "$TEST_FILE" | LC_ALL=C sort -r
```
Fixes: 43c23270a6 ("migrate locale from en_US.UTF-8 to C.UTF-8")
This commit is contained in:
parent
81f9bc9146
commit
8c31a8de21
1 changed files with 2 additions and 3 deletions
|
|
@ -143,13 +143,12 @@ class Geary.ImapDB.DatabaseTest : TestCase {
|
|||
db.exec("""
|
||||
CREATE TABLE Test (id INTEGER PRIMARY KEY, test_str TEXT);
|
||||
INSERT INTO Test (test_str) VALUES ('a');
|
||||
INSERT INTO Test (test_str) VALUES ('b');
|
||||
INSERT INTO Test (test_str) VALUES ('B');
|
||||
INSERT INTO Test (test_str) VALUES ('BB');
|
||||
INSERT INTO Test (test_str) VALUES ('á');
|
||||
INSERT INTO Test (test_str) VALUES ('🤯');
|
||||
""");
|
||||
|
||||
string[] expected = { "BB", "B", "b", "á", "a" };
|
||||
string[] expected = { "🤯", "a", "BB", "B" };
|
||||
Db.Result result = db.query(
|
||||
"SELECT test_str FROM Test ORDER BY test_str COLLATE UTF8COLL DESC"
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue