@@ -14,16 +14,16 @@ fn escape_body_text_with_wbr() {
14
14
assert_eq ! ( & E ( " " ) . to_string( ) , " " ) ;
15
15
// real(istic) examples
16
16
assert_eq ! ( & E ( "FirstSecond" ) . to_string( ) , "First<wbr>Second" ) ;
17
- assert_eq ! ( & E ( "First_Second" ) . to_string( ) , "First <wbr>_Second " ) ;
17
+ assert_eq ! ( & E ( "First_Second" ) . to_string( ) , "First_ <wbr>Second " ) ;
18
18
assert_eq ! ( & E ( "First Second" ) . to_string( ) , "First Second" ) ;
19
19
assert_eq ! ( & E ( "First HSecond" ) . to_string( ) , "First HSecond" ) ;
20
20
assert_eq ! ( & E ( "First HTTPSecond" ) . to_string( ) , "First HTTP<wbr>Second" ) ;
21
21
assert_eq ! ( & E ( "First SecondThird" ) . to_string( ) , "First Second<wbr>Third" ) ;
22
- assert_eq ! ( & E ( "First<T>_Second" ) . to_string( ) , "First<<wbr>T><wbr>_Second " ) ;
23
- assert_eq ! ( & E ( "first_second" ) . to_string( ) , "first <wbr>_second " ) ;
22
+ assert_eq ! ( & E ( "First<T>_Second" ) . to_string( ) , "First<<wbr>T>_ <wbr>Second " ) ;
23
+ assert_eq ! ( & E ( "first_second" ) . to_string( ) , "first_ <wbr>second " ) ;
24
24
assert_eq ! ( & E ( "first:second" ) . to_string( ) , "first:<wbr>second" ) ;
25
25
assert_eq ! ( & E ( "first::second" ) . to_string( ) , "first::<wbr>second" ) ;
26
- assert_eq ! ( & E ( "MY_CONSTANT" ) . to_string( ) , "MY <wbr>_CONSTANT " ) ;
26
+ assert_eq ! ( & E ( "MY_CONSTANT" ) . to_string( ) , "MY_ <wbr>CONSTANT " ) ;
27
27
// a string won't get wrapped if it's less than 8 bytes
28
28
assert_eq ! ( & E ( "HashSet" ) . to_string( ) , "HashSet" ) ;
29
29
// an individual word won't get wrapped if it's less than 4 bytes
0 commit comments