From 936db5739a58ad5d01810c60e8ebebafc93f00ab Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 30 May 2024 07:00:28 -0400 Subject: initial commit --- src/root.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/root.zig (limited to 'src/root.zig') 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); +} -- cgit v1.2.3