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
This commit is contained in:
Michael Gratton 2020-08-29 18:33:15 +10:00
parent d8d59cd565
commit a64412e696

View file

@ -306,7 +306,7 @@ This is the second line.
string message_data = message.get_rfc822_buffer(SMTP_FORMAT).to_string(); string message_data = message.get_rfc822_buffer(SMTP_FORMAT).to_string();
assert_true("To: Test <test@example.com>\r\n" in message_data); assert_true("To: Test <test@example.com>\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 { public void get_rfc822_buffer_long_ascii_line() throws GLib.Error {