Skip to content

Commit 5841f43

Browse files
committed
added elixir language test cases
1 parent 4498747 commit 5841f43

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Tests/CodeEditTextViewTests/CodeEditTextViewTests.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,22 @@ final class CodeEditTextViewTests: XCTestCase {
107107
XCTAssertEqual(language.id, .css)
108108
}
109109

110+
// MARK: Elixir
111+
112+
func test_CodeLanguageElixir() throws {
113+
let url = URL(fileURLWithPath: "~/path/to/file.ex")
114+
let language = CodeLanguage.detectLanguageFrom(url: url)
115+
116+
XCTAssertEqual(language.id, .elixir)
117+
}
118+
119+
func test_CodeLanguageElixir2() throws {
120+
let url = URL(fileURLWithPath: "~/path/to/file.exs")
121+
let language = CodeLanguage.detectLanguageFrom(url: url)
122+
123+
XCTAssertEqual(language.id, .elixir)
124+
}
125+
110126
// MARK: Go
111127

112128
func test_CodeLanguageGo() throws {

0 commit comments

Comments
 (0)