I hope this works

This commit is contained in:
Cameron Reed 2024-11-01 15:07:52 -06:00
parent affbb5568f
commit 5357d0a593

View File

@ -1,10 +1,9 @@
const std = @import("std"); const json = @import("json.zig");
const testing = std.testing;
export fn add(a: i32, b: i32) i32 { pub const JSONError = json.JSONError;
return a + b; pub const JSONType = json.JSONType;
} pub const JSONObject = json.JSONObject;
pub const JSONValue = json.JSONValue;
test "basic add functionality" { pub const JSONStringValue = json.JSONStringValue;
try testing.expect(add(3, 7) == 10); pub const parseFile = json.parseFile;
} pub const parseString = json.parseString;