Open dwwoelfel opened 4 years ago
Testing123
Test
Hello
World
Here's some code
var y: i32 = add(10, x);
const x: i32 = add(12, 34);
test "global variables" {
assert(x == 46);
assert(y == 56);
}
fn add(a: i32, b: i32) i32 {
return a + b;
}
const std = @import("std");
const assert = std.debug.assert;
Testing
https://www.youtube.com/watch?v=modXC5IWTJI