File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
src/librustdoc/html/escape Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -47,21 +47,8 @@ fn escape_body_text_with_wbr_makes_sense() {
47
47
use itertools:: Itertools as _;
48
48
49
49
use super :: EscapeBodyTextWithWbr as E ;
50
- const C : [ u8 ; 3 ] = [ b'a' , b'A' , b'_' ] ;
51
- for chars in [
52
- C . into_iter ( ) ,
53
- C . into_iter ( ) ,
54
- C . into_iter ( ) ,
55
- C . into_iter ( ) ,
56
- C . into_iter ( ) ,
57
- C . into_iter ( ) ,
58
- C . into_iter ( ) ,
59
- C . into_iter ( ) ,
60
- ]
61
- . into_iter ( )
62
- . multi_cartesian_product ( )
63
- {
64
- let s = String :: from_utf8 ( chars) . unwrap ( ) ;
50
+ for chars in iter:: repeat ( "aA_" ) . take ( 8 ) . map ( str:: chars) . multi_cartesian_product ( ) {
51
+ let s = chars. into_iter ( ) . collect :: < String > ( ) ;
65
52
assert_eq ! ( s. len( ) , 8 ) ;
66
53
let esc = E ( & s) . to_string ( ) ;
67
54
assert ! ( !esc. contains( "<wbr><wbr>" ) ) ;
You can’t perform that action at this time.
0 commit comments