[lang] Tests: fixtures read the same with LF or CRLF line endings

This commit is contained in:
2026-11-17 19:35:02 +01:00
parent 7dca9de95c
commit 40c2b5377b
2 changed files with 6 additions and 4 deletions
+1
View File
@@ -11,6 +11,7 @@ fn fixture(lang: Lang) -> Vec<(String, String)> {
Lang::La => include_str!("fixtures/lemma_la.tsv"),
};
text.lines()
.map(|l| l.trim_end_matches('\r'))
.filter(|l| !l.is_empty() && !l.starts_with('#'))
.map(|l| {
let (f, le) = l.split_once('\t').expect("form<TAB>lemma");