We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed49386 commit fd4cd68Copy full SHA for fd4cd68
src/librustdoc/html/escape/tests.rs
@@ -47,21 +47,8 @@ fn escape_body_text_with_wbr_makes_sense() {
47
use itertools::Itertools as _;
48
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
54
55
56
57
58
59
60
- ]
61
- .into_iter()
62
- .multi_cartesian_product()
63
- {
64
- let s = String::from_utf8(chars).unwrap();
+ for chars in iter::repeat("aA_").take(8).map(str::chars).multi_cartesian_product() {
+ let s = chars.into_iter().collect::<String>();
65
assert_eq!(s.len(), 8);
66
let esc = E(&s).to_string();
67
assert!(!esc.contains("<wbr><wbr>"));
0 commit comments