case UnicodeType.ENCLOSING_MARK:
/* Ignore those */
break;
- case UnicodeType.PRIVATE_USE:
- case UnicodeType.SURROGATE:
- case UnicodeType.LOWERCASE_LETTER:
- case UnicodeType.MODIFIER_LETTER:
- case UnicodeType.OTHER_LETTER:
- case UnicodeType.TITLECASE_LETTER:
- case UnicodeType.UPPERCASE_LETTER:
case UnicodeType.DECIMAL_NUMBER:
case UnicodeType.LETTER_NUMBER:
case UnicodeType.OTHER_NUMBER:
case UnicodeType.LINE_SEPARATOR:
case UnicodeType.PARAGRAPH_SEPARATOR:
case UnicodeType.SPACE_SEPARATOR:
+ /* Replace punctuation with spaces. */
+ retval[0] = ' ';
+ break;
+ case UnicodeType.PRIVATE_USE:
+ case UnicodeType.SURROGATE:
+ case UnicodeType.LOWERCASE_LETTER:
+ case UnicodeType.MODIFIER_LETTER:
+ case UnicodeType.OTHER_LETTER:
+ case UnicodeType.TITLECASE_LETTER:
+ case UnicodeType.UPPERCASE_LETTER:
default:
ch = ch.tolower ();
ch.fully_decompose (false, retval);
this.test_match_name_4);
this.add_test ("test potential match by name #5 ",
this.test_match_name_5);
+ this.add_test ("test potential match by name #6 ",
+ this.test_match_name_6);
}
public override void set_up ()
assert (this._match >= Folks.MatchResult.HIGH);
}
+ public void test_match_name_6 ()
+ {
+ /* Another one from bgo#678474, testing random punctuation in names */
+ this._test_match_name ("Alice Badger", "alice.badger");
+ assert (this._match >= Folks.MatchResult.HIGH);
+ }
+
private async void _test_match_name_async ()
{
var store = BackendStore.dup ();