[lang] Tests: fixtures read the same with LF or CRLF line endings
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user