diff options
| author | seth <[email protected]> | 2024-05-30 07:00:28 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-05-30 07:19:01 -0400 |
| commit | 936db5739a58ad5d01810c60e8ebebafc93f00ab (patch) | |
| tree | fd8762027d465c68f8fffdcd78fccd40a1778f94 /src/root.zig | |
initial commit
Diffstat (limited to 'src/root.zig')
| -rw-r--r-- | src/root.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/root.zig b/src/root.zig new file mode 100644 index 0000000..ecfeade --- /dev/null +++ b/src/root.zig @@ -0,0 +1,10 @@ +const std = @import("std"); +const testing = std.testing; + +export fn add(a: i32, b: i32) i32 { + return a + b; +} + +test "basic add functionality" { + try testing.expect(add(3, 7) == 10); +} |
