Lines Matching refs:wc
55 let mut wc = WriteComparator::new(other); in cmp_utf8() localVariable
56 let _ = writeable.write_to(&mut wc); in cmp_utf8()
57 wc.finish().reverse() in cmp_utf8()
118 let mut wc = WriteComparator::new(a.as_bytes()); in test_write_char() localVariable
120 wc.write_char(ch).unwrap(); in test_write_char()
122 assert_eq!(a.cmp(b), wc.finish(), "{a} <=> {b}"); in test_write_char()
131 let mut wc = WriteComparator::new(a.as_bytes()); in test_write_str() localVariable
132 wc.write_str(b).unwrap(); in test_write_str()
133 assert_eq!(a.cmp(b), wc.finish(), "{a} <=> {b}"); in test_write_str()
142 let mut wc = WriteComparator::new(a.as_bytes()); in test_mixed() localVariable
148 wc.write_char('-').unwrap(); in test_mixed()
150 wc.write_str(substr).unwrap(); in test_mixed()
152 assert_eq!(a.cmp(b), wc.finish(), "{a} <=> {b}"); in test_mixed()