Add tests for LapceLanguage variants Swift, QL, and Haskell
@@ -599,4 +599,19 @@ fn test_java_lang() {
fn test_elm_lang() {
assert_language(LapceLanguage::Elm, &["elm"]);
}
+ #[test]
+ #[cfg(feature = "lang-swift")]
+ fn test_elm_lang() {
+ assert_language(LapceLanguage::Swift, &["swift"]);
+ }
+ #[test]
+ #[cfg(feature = "lang-ql")]
+ fn test_elm_lang() {
+ assert_language(LapceLanguage::QL, &["ql"]);
+ }
+ #[test]
+ #[cfg(feature = "lang-haskell")]
+ fn test_elm_lang() {
+ assert_language(LapceLanguage::Haskell, &["hs"]);
+ }
}
