MCPcopy Create free account
hub / github.com/SharpCoder/teensycore / test_split

Function test_split

src/system/strings.rs:187–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

vecs_eqFunction · 0.85
splitMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected