summaryrefslogtreecommitdiffstats
path: root/vendor/line-index/src/tests.rs
blob: 31c01c20ee36fb8bcf326c7e3b73c8f3083f1eae (plain)
1
2
3
4
5
6
7
8
9
10
11
use super::LineIndex;

#[test]
fn test_empty_index() {
    let col_index = LineIndex::new(
        "
const C: char = 'x';
",
    );
    assert_eq!(col_index.line_wide_chars.len(), 0);
}