rust-analyzer/lib/line-index/src/tests.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
186 B
Rust
Raw Normal View History

2023-05-06 00:22:23 +00:00
use super::LineIndex;
2023-05-04 02:18:41 +00:00
#[test]
fn test_empty_index() {
let col_index = LineIndex::new(
"
const C: char = 'x';
",
);
assert_eq!(col_index.line_wide_chars.len(), 0);
}