From 59b30c1305ff6bcb63c673898893edcda19e27e4 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 22 Jan 2026 12:23:25 +0100 Subject: Add Odin grammar --- tests.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 2496a4c..d36eb70 100644 --- a/tests.sh +++ b/tests.sh @@ -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" -- cgit v1.2.3