From a64412e69690b3016e0ddcbc20dac49c833fccd4 Mon Sep 17 00:00:00 2001 From: Michael Gratton Date: Sat, 29 Aug 2020 18:33:15 +1000 Subject: [PATCH] RFC822MesageTest: Fix locale-sensitive test case Use `ascii_down()` instead of `down()` so the test case is more robust in the face of being run under different locales. Fixes #950 --- test/engine/rfc822/rfc822-message-test.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/engine/rfc822/rfc822-message-test.vala b/test/engine/rfc822/rfc822-message-test.vala index 083ea3d4..b7697dda 100644 --- a/test/engine/rfc822/rfc822-message-test.vala +++ b/test/engine/rfc822/rfc822-message-test.vala @@ -306,7 +306,7 @@ This is the second line. string message_data = message.get_rfc822_buffer(SMTP_FORMAT).to_string(); assert_true("To: Test \r\n" in message_data); - assert_false("bcc" in message_data.down()); + assert_false("bcc" in message_data.ascii_down()); } public void get_rfc822_buffer_long_ascii_line() throws GLib.Error {