diff options
Diffstat (limited to 'bindings/swift')
-rw-r--r-- | bindings/swift/TreeSitterGspTests/TreeSitterGspTests.swift | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bindings/swift/TreeSitterGspTests/TreeSitterGspTests.swift b/bindings/swift/TreeSitterGspTests/TreeSitterGspTests.swift new file mode 100644 index 0000000..df7bc99 --- /dev/null +++ b/bindings/swift/TreeSitterGspTests/TreeSitterGspTests.swift @@ -0,0 +1,12 @@ +import XCTest +import SwiftTreeSitter +import TreeSitterGsp + +final class TreeSitterGspTests: XCTestCase { + func testCanLoadGrammar() throws { + let parser = Parser() + let language = Language(language: tree_sitter_gsp()) + XCTAssertNoThrow(try parser.setLanguage(language), + "Error loading Gsp grammar") + } +} |