diff options
| author | zachir <zachir@librem.one> | 2025-07-13 19:17:43 -0500 |
|---|---|---|
| committer | zachir <zachir@librem.one> | 2025-07-13 19:17:43 -0500 |
| commit | bd823e242a6a5232e5a96292cdee3120026516d7 (patch) | |
| tree | 2df1d6394e3f43d2329c0593dbab978a4c9599f0 /src | |
| parent | 9aec5af465fe17a4d624588d553258848d435dc0 (diff) | |
Use const's for tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index c721988..2adf7f9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -14,13 +14,13 @@ test "@rem(-2, 2) == 0" { } test "parseInt(i32, \"-2\", 10) == -2" { - var test_int = try parseInt(i32, "-2", 10); + const test_int = try parseInt(i32, "-2", 10); try expect(test_int == -2); } test "parseInt(i32, \"\", 10) != 0" { - var test_int = try parseInt(i32, "-2", 10); + const test_int = try parseInt(i32, "-2", 10); try expect(test_int != 0); } |
