summaryrefslogtreecommitdiff
path: root/scripts/kmd/src/root.zig
diff options
context:
space:
mode:
authorGeorge Abbott <george@gabbott.dev>2025-01-26 11:37:12 +0000
committerGeorge Abbott <george@gabbott.dev>2025-01-26 11:37:12 +0000
commitbac748dbe8c28cf1ed3b387b24f89ffe5a58ffc9 (patch)
tree59cd9f416aaf68154dc919f7217e0344d9940a39 /scripts/kmd/src/root.zig
parent725f1f1c08c2d7e338d649062622d313292a41fa (diff)
kmd
Diffstat (limited to 'scripts/kmd/src/root.zig')
-rw-r--r--scripts/kmd/src/root.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/kmd/src/root.zig b/scripts/kmd/src/root.zig
new file mode 100644
index 0000000..ecfeade
--- /dev/null
+++ b/scripts/kmd/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);
+}