Skip to content

Commit

Permalink
Fix unit tests for duplicate '.v' file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanMcLoughlin committed Mar 11, 2021
1 parent 43a4609 commit 22dc5f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ mod tests {
assert_eq!(test.syntax_for_file("test.sass"), "Sass");
assert_eq!(test.syntax_for_file("test.js"), "JavaScript (Babel)");
assert_eq!(test.syntax_for_file("test.fs"), "F#");
assert_eq!(test.syntax_for_file("test.v"), "Verilog");
}

#[test]
Expand Down
3 changes: 3 additions & 0 deletions tests/no_duplicate_extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ fn no_duplicate_extensions() {
// The '.fs' extension appears in F# and GLSL.
// We default to F#.
"fs",
// SystemVerilog and Verilog both use .v files.
// We default to Verilog.
"v",
];

let assets = HighlightingAssets::from_binary();
Expand Down

0 comments on commit 22dc5f8

Please sign in to comment.