()
| 616 | |
| 617 | #[test] |
| 618 | fn test_token_new() { |
| 619 | let id = LeafId::new(crate::types::NodeId::new(1), 0); |
| 620 | let token = Token::new(id, TokenKind::Word, b"hello".to_vec(), LeafState::Alive); |
| 621 | |
| 622 | assert_eq!(token.content_str(), "hello"); |
| 623 | assert!(token.is_alive()); |
| 624 | assert!(!token.is_deleted()); |
| 625 | } |
| 626 | |
| 627 | #[test] |
| 628 | fn test_token_deleted() { |
nothing calls this directly
no outgoing calls
no test coverage detected