File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,13 @@ mod test {
396
396
}
397
397
}
398
398
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
+
399
406
// RFC4013, 3. Examples
400
407
#[ test]
401
408
fn saslprep_examples ( ) {
@@ -420,7 +427,7 @@ mod test {
420
427
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" ) ;
421
428
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" ) ;
422
429
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 ) ) ;
424
431
}
425
432
426
433
#[ test]
You can’t perform that action at this time.
0 commit comments