diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-22 12:23:25 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-22 12:23:25 +0100 |
| commit | 59b30c1305ff6bcb63c673898893edcda19e27e4 (patch) | |
| tree | b02b357f3f7a70f916284663ae94f57d64ac1d92 /tests.sh | |
| parent | 8375f459638f942d51948d466d9365eaa0c2a500 (diff) | |
| download | crep-59b30c1305ff6bcb63c673898893edcda19e27e4.tar.gz | |
Add Odin grammar
Diffstat (limited to 'tests.sh')
| -rw-r--r-- | tests.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -118,6 +118,13 @@ run_test "Kotlin Class" "MyClass" "$TEST_DIR/test.kt" "class MyClass" run_test "Kotlin Method" "myMethod" "$TEST_DIR/test.kt" "fun myMethod ()" run_test "Kotlin Extension" "extensionFunc" "$TEST_DIR/test.kt" "fun extensionFunc ()" +# Odin Tests +run_test "Odin Proc" "hello" "$TEST_DIR/test.odin" "proc hello" +run_test "Odin Params" "add" "$TEST_DIR/test.odin" "proc add (a, b: int)" +run_test "Odin Struct" "Point" "$TEST_DIR/test.odin" "struct Point" +run_test "Odin Enum" "Color" "$TEST_DIR/test.odin" "enum Color" +run_test "Odin Variable Proc" "complex_proc" "$TEST_DIR/test.odin" "proc complex_proc (name: string, age: int, flags: ..bool)" + # Case Sensitivity Tests run_test "Default Case Insensitive" "foo" "tests/test.c" "void FooBar" run_test_with_flags "Case Sensitive -c" "-c" "foobar" "tests/test.c" "void foobar" |
