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

Function test_drop

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

Source from the content-addressed store, hash-verified

625
626 #[test]
627 fn test_drop() {
628 let mut sb = Str::new();
629 sb.append(b"hello, world");
630 sb.drop();
631 assert_eq!(sb.index, 0);
632 }
633
634 #[test]
635 fn test_iterator() {

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
dropMethod · 0.80

Tested by

no test coverage detected