I hope this works
This commit is contained in:
parent
affbb5568f
commit
5357d0a593
17
src/root.zig
17
src/root.zig
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user