summaryrefslogtreecommitdiff
path: root/tests/interop/test_c_import.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/interop/test_c_import.zc')
-rw-r--r--tests/interop/test_c_import.zc6
1 files changed, 3 insertions, 3 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";