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

Function test_token_kind_name

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

Source from the content-addressed store, hash-verified

45
46 #[test]
47 fn test_token_kind_name() {
48 assert_eq!(TokenKind::Word.name(), "word");
49 assert_eq!(TokenKind::Whitespace.name(), "ws");
50 assert_eq!(TokenKind::Operator.name(), "op");
51 assert_eq!(TokenKind::Punctuation.name(), "punct");
52 assert_eq!(TokenKind::String.name(), "string");
53 assert_eq!(TokenKind::Number.name(), "number");
54 assert_eq!(TokenKind::Comment.name(), "comment");
55 assert_eq!(TokenKind::Newline.name(), "newline");
56 assert_eq!(TokenKind::Other.name(), "other");
57 }
58
59 #[test]
60 fn test_token_kind_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected