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

Function test_tokenize_roundtrip

atomic-core/src/merge/three_way.rs:621–626  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

619
620 #[test]
621 fn test_tokenize_roundtrip() {
622 let input = b"let x = 42;";
623 let tokens = tokenize(input);
624 let reassembled = reassemble_tokens(&tokens);
625 assert_eq!(reassembled, input);
626 }
627
628 #[test]
629 fn test_tokenize_empty() {

Callers

nothing calls this directly

Calls 2

reassemble_tokensFunction · 0.85
tokenizeFunction · 0.70

Tested by

no test coverage detected