Skip to content

Commit

Permalink
feat(kotlin): update "vendor/tree-sitter-gritql" submodule commit and…
Browse files Browse the repository at this point in the history
… add `simple_kotlin()` test

fixes getgrit#570
  • Loading branch information
Alex-ley-scrub committed Oct 31, 2024
1 parent 7da83bd commit 724f6ef
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions crates/core/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3123,6 +3123,33 @@ fn toml_table_rename() {
.unwrap();
}

#[test]
fn simple_kotlin() {
run_test_expected({
TestArgExpected {
pattern: r#"
|language kotlin
|`"Hello, World!"` => `"Hello, Marzano!"`
|"#
.trim_margin()
.unwrap(),
source: r#"
|fun main(args: Array<String>) {
| println("Hello, World!")
|}"#
.trim_margin()
.unwrap(),
expected: r#"
|fun main(args: Array<String>) {
| println("Hello, Marzano!")
|}"#
.trim_margin()
.unwrap(),
}
})
.unwrap();
}

#[test]
fn multi_args_snippet() {
run_test_match({
Expand Down
2 changes: 1 addition & 1 deletion vendor/tree-sitter-gritql

0 comments on commit 724f6ef

Please sign in to comment.