Skip to content

Commit fad6f83

Browse files
fix: broken test
1 parent 1a591b3 commit fad6f83

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,13 @@ mod test {
396396
}
397397
}
398398

399+
fn assert_starts_with_combining_char<T>(result: Result<T, Error>) {
400+
match result {
401+
Err(Error(ErrorCause::StartsWithCombiningCharacter)) => (),
402+
_ => assert!(false)
403+
}
404+
}
405+
399406
// RFC4013, 3. Examples
400407
#[test]
401408
fn saslprep_examples() {
@@ -420,7 +427,7 @@ mod test {
420427
assert_eq!(x520prep("J.\u{FE00} \u{9}W. \u{B}wuz h\u{0115}re", false).unwrap(), "J. W. wuz h\u{0115}re");
421428
assert_eq!(x520prep("J.\u{FE00} \u{9}W. \u{B}wuz h\u{0115}re", true).unwrap(), "j. w. wuz h\u{0115}re");
422429
assert_eq!(x520prep("UPPERCASED", true).unwrap(), "uppercased");
423-
assert_prohibited_character(x520prep("\u{0306}hello", true));
430+
assert_starts_with_combining_char(x520prep("\u{0306}hello", true));
424431
}
425432

426433
#[test]

0 commit comments

Comments
 (0)