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

Function test_split

src/system/str.rs:684–690  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

682
683 #[test]
684 fn test_split() {
685 let target = str!(b"hello:world");
686 let strs = target.split(b':');
687
688 sb_sb_compare(&mut strs.get(0).unwrap(), &mut str!(b"hello"));
689 sb_sb_compare(&mut strs.get(1).unwrap(), &mut str!(b"world"));
690 }
691}

Callers

nothing calls this directly

Calls 3

sb_sb_compareFunction · 0.85
splitMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected