* fix matching backslashes, add some tests

This commit is contained in:
djcb
2013-05-27 05:49:43 -07:00
parent bdf7ca65c7
commit e97ec2d51c
4 changed files with 6 additions and 0 deletions

View File

@ -198,6 +198,7 @@ test_mu_str_process_query_term (void)
{ "Foo..Bar", "foo..bar" },
{ "Foo.Bar", "foo_bar" },
{ "Foo Bar", "foo_bar" },
{ "\\foo", "_foo" },
{ "subject:test@foo", "subject:test_foo" },
{ "xxx:test@bar", "xxx:test_bar" },
{ "aa$bb$cc", "aa_bb_cc" },
@ -239,6 +240,7 @@ test_mu_str_process_term (void)
{ "Foo..Bar", "foo__bar" },
{ "Foo.Bar", "foo_bar" },
{ "Foo Bar", "foo_bar" },
{ "\\foo", "_foo" },
{ "subject:test@foo", "subject_test_foo" },
{ "xxx:test@bar", "xxx_test_bar" },
{ "aa$bb$cc", "aa_bb_cc" },