()
| 541 | |
| 542 | #[test] |
| 543 | fn test_leaf_is_significant() { |
| 544 | let word_leaf = make_leaf(); |
| 545 | assert!(word_leaf.is_significant()); |
| 546 | |
| 547 | let ws_leaf = Leaf::new( |
| 548 | LeafId::new(NodeId::new(1), 1), |
| 549 | BranchId::new(NodeId::new(1), 0), |
| 550 | TokenKind::Whitespace, |
| 551 | 5..6, |
| 552 | ); |
| 553 | assert!(!ws_leaf.is_significant()); |
| 554 | } |
| 555 | |
| 556 | #[test] |
| 557 | fn test_leaf_is_whitespace() { |
nothing calls this directly
no test coverage detected