root.zig (191B)
1 const std = @import("std"); 2 const testing = std.testing; 3 4 export fn add(a: i32, b: i32) i32 { 5 return a + b; 6 } 7 8 test "basic add functionality" { 9 try testing.expect(add(3, 7) == 10); 10 }
kilozFollowing through https://viewsourcecode.org/snaptoken/kilo/index.html in Zig | |
git clone git://code.mfashby.net:/kiloz | |
Log | Files | Refs | README |