diff options
Diffstat (limited to 'tests/interop')
| -rw-r--r-- | tests/interop/test_c_import.zc | 6 | ||||
| -rw-r--r-- | tests/interop/test_c_macros.zc | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/interop/test_c_import.zc b/tests/interop/test_c_import.zc index ed95bc1..207aff0 100644 --- a/tests/interop/test_c_import.zc +++ b/tests/interop/test_c_import.zc @@ -2,7 +2,7 @@ import "math.h" as m; test "test_c_import" { - var x = m::sin(0.0); + let x = m::sin(0.0); if x == 0.0 { println "Success: m::sin(0.0) == 0.0"; @@ -16,8 +16,8 @@ test "test_c_import" { extern fn abs(x: int) -> int; test "test_interop_abs" { - var x = -10; - var y = abs(x); + let x = -10; + let y = abs(x); if (y == 10) println "Abs works"; else { println "Abs failed"; diff --git a/tests/interop/test_c_macros.zc b/tests/interop/test_c_macros.zc index 0b1fc64..b1b9b68 100644 --- a/tests/interop/test_c_macros.zc +++ b/tests/interop/test_c_macros.zc @@ -3,7 +3,7 @@ #define DEBUG_MODE 1 test "test_c_macros" { - var x = MAX(10, 20); + let x = MAX(10, 20); if x == 20 { println "MAX macro worked"; |
