()
| 3988 | |
| 3989 | #[test] |
| 3990 | fn replace_all_byteset_basic() { |
| 3991 | let mut buffer = b"hello world".to_vec(); |
| 3992 | let vowels = sz::Byteset::from("aeiou"); |
| 3993 | let replaced = sz::try_replace_all_byteset(&mut buffer, vowels, b"_").unwrap(); |
| 3994 | assert_eq!(replaced, 3); |
| 3995 | assert_eq!(buffer, b"h_ll_ w_rld"); |
| 3996 | } |
| 3997 | |
| 3998 | #[test] |
| 3999 | fn replace_all_byteset_grows() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…