aboutsummaryrefslogtreecommitdiff
path: root/bindings/swift/TreeSitterGspTests/TreeSitterGspTests.swift
blob: df7bc999e5865ec03bd6925565f6a71510e89e66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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")
    }
}