MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_tokenizer_remaining

Function test_tokenizer_remaining

atomic-core/src/diff/token/tests.rs:725–731  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

723
724 #[test]
725 fn test_tokenizer_remaining() {
726 let mut tokenizer = Tokenizer::new(b"hello world");
727 assert_eq!(tokenizer.remaining(), b"hello world");
728
729 tokenizer.next(); // consume "hello"
730 assert_eq!(tokenizer.remaining(), b" world");
731 }
732
733 #[test]
734 fn test_tokenizer_position() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected