Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Jun 12, 2024
1 parent 8991775 commit 722fa2c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/test-headers.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,9 @@ static struct {
const char *rfc2047_encoded;
const char *rfc2231_encoded;
} parameter_lists[] = {
{ "ќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќ=\"ќ\"",
";\n\tќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќ=\"=?utf-8?b?0Zw=?=\"\n",
";\n\tќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќ*0*=%D1;\n\tќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќќ*1*=%9C\n" },
{ "KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=\"ќ\"",
";\n\tKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK=\"=?iso-8859-5?b?/A==?=\"\n",
";\n\tKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK*0*=iso;\n\tKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK*1*=-88;\n\tKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK*2*=59-;\n\tKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK*3*=5'';\n\tKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK*4*=%FC\n" },
};

static void
Expand All @@ -624,7 +624,7 @@ test_parameter_lists (void)
g_mime_format_options_set_param_encoding_method (rfc2047, GMIME_PARAM_ENCODING_METHOD_RFC2047);

rfc2231 = g_mime_format_options_clone (rfc2047);
g_mime_format_options_set_param_encoding_method (rfc2047, GMIME_PARAM_ENCODING_METHOD_RFC2231);
g_mime_format_options_set_param_encoding_method (rfc2231, GMIME_PARAM_ENCODING_METHOD_RFC2231);

for (i = 0; i < G_N_ELEMENTS (parameter_lists); i++) {
testsuite_check ("parameter_lists[%u]", i);
Expand All @@ -646,15 +646,14 @@ test_parameter_lists (void)
testsuite_check_passed ();
} catch (ex) {
testsuite_check_failed ("parameter_lists[%u] failed: %s", i, ex->message);
g_object_unref (list);
} finally;

g_string_truncate (str, len);
g_object_unref (list);
}

g_object_unref (rfc2047);
g_object_unref (rfc2231);
g_mime_format_options_free (rfc2047);
g_mime_format_options_free (rfc2231);
g_string_free (str, TRUE);
}

Expand Down

0 comments on commit 722fa2c

Please sign in to comment.