diff --git a/Tests/CodeEditTextViewTests/CodeEditTextViewTests.swift b/Tests/CodeEditTextViewTests/CodeEditTextViewTests.swift index 5d9a912ce..4b4a550da 100644 --- a/Tests/CodeEditTextViewTests/CodeEditTextViewTests.swift +++ b/Tests/CodeEditTextViewTests/CodeEditTextViewTests.swift @@ -125,6 +125,15 @@ final class CodeEditTextViewTests: XCTestCase { XCTAssertEqual(language.id, .goMod) } + // MARK: Haskell + + func test_CodeLanguageHaskell() throws { + let url = URL(fileURLWithPath: "~/path/to/file.hs") + let language = CodeLanguage.detectLanguageFrom(url: url) + + XCTAssertEqual(language.id, .haskell) + } + // MARK: HTML func test_CodeLanguageHTML() throws {