rust-analyzer/lib/line-index/src/tests.rs
2023-05-06 00:49:23 -07:00

11 lines
186 B
Rust

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);
}