Move syntaxes, fixes #874

This commit is contained in:
sharkdp authored and David Peter committed 2020-03-21 23:53:53 +01:00
1 parent 0550a286bd
commit 32346612b7
87 files changed
+66 -55

No files matched your search

+4 -4
View File
@@ -273,6 +273,8 @@ mod tests {
assert_eq!(test.syntax_name("test.rs"), "Rust");
assert_eq!(test.syntax_name("test.cpp"), "C++");
assert_eq!(test.syntax_name("PKGBUILD"), "Bourne Again Shell (bash)");
assert_eq!(test.syntax_name(".bashrc"), "Bourne Again Shell (bash)");
assert_eq!(test.syntax_name("Makefile"), "Makefile");
}
#[test]
@@ -280,10 +282,8 @@ mod tests {
let test = SyntaxDetectionTest::new();
assert_eq!(test.syntax_name("test.sass"), "Sass");
// TODO: make these tests pass:
// assert_eq!(test.syntax_name("test.h"), "C");
// assert_eq!(test.syntax_name("test.hs"), "Haskell (Improved)");
// assert_eq!(test.syntax_name("test.js"), "JavaScript (Babel)");
assert_eq!(test.syntax_name("test.hs"), "Haskell (improved)");
assert_eq!(test.syntax_name("test.js"), "JavaScript (Babel)");
}
#[test]