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

Function test_token_as_str

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

Source from the content-addressed store, hash-verified

76
77 #[test]
78 fn test_token_as_str() {
79 let token = Token::new(b"world", TokenKind::Word, 0);
80 assert_eq!(token.as_str(), "world");
81 }
82
83 #[test]
84 fn test_token_offsets() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected