Skip to content

Commit

Permalink
added test case for haskell language
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepistrol committed Oct 3, 2022
1 parent 3ccfd3c commit ad60569
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Tests/CodeEditTextViewTests/CodeEditTextViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ad60569

Please sign in to comment.