()
| 185 | |
| 186 | #[test] |
| 187 | fn test_split() { |
| 188 | let mut text = vec_str!(b"Hello\nHow\nAre\nYou?"); |
| 189 | let words= text.split(b'\n'); |
| 190 | assert_eq!(words.size(), 4); |
| 191 | vecs_eq(words.get(0).unwrap(), vec_str!(b"Hello")); |
| 192 | } |
| 193 | |
| 194 | #[test] |
| 195 | fn test_string_comparison() { |