diff options
Diffstat (limited to 'tests/syntax_detection.rs')
-rw-r--r-- | tests/syntax_detection.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/syntax_detection.rs b/tests/syntax_detection.rs index 23a52de9..ac155959 100644 --- a/tests/syntax_detection.rs +++ b/tests/syntax_detection.rs @@ -58,6 +58,17 @@ fn syntax_detection_basic() { } #[test] +fn syntax_detection_well_defined_mapping_for_duplicate_extensions() { + 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)"); +} + +#[test] fn syntax_detection_first_line() { let test = SyntaxDetectionTest::new(); |