From 8c31a8de21102bf3ee50f478304e9d02f3851706 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Tue, 15 Jul 2025 21:42:32 +0200 Subject: [PATCH] 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: 43c23270a675 ("migrate locale from en_US.UTF-8 to C.UTF-8") --- test/engine/imap-db/imap-db-database-test.vala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/engine/imap-db/imap-db-database-test.vala b/test/engine/imap-db/imap-db-database-test.vala index 60c69ef4..f7e00f8c 100644 --- a/test/engine/imap-db/imap-db-database-test.vala +++ b/test/engine/imap-db/imap-db-database-test.vala @@ -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" );