mirror of
https://github.com/ziglang/zig.git
synced 2024-12-02 18:12:34 +00:00
enable more json tests
I think it was a mistake that these weren't getting automatically run by the test suite.
This commit is contained in:
parent
4b6f350369
commit
da28811c50
@ -1400,3 +1400,7 @@ test "json.parser.dynamic" {
|
||||
const double = image.Object.get("double").?.value;
|
||||
testing.expect(double.Float == 1.3412);
|
||||
}
|
||||
|
||||
test "import more json tests" {
|
||||
_ = @import("json/test.zig");
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
// Tests are taken from https://github.com/nst/JSONTestSuite
|
||||
// Read also http://seriot.ch/parsing_json.php for a good overview.
|
||||
|
||||
const std = @import("std.zig");
|
||||
const std = @import("../std.zig");
|
||||
|
||||
fn ok(comptime s: []const u8) void {
|
||||
std.testing.expect(std.json.validate(s));
|
Loading…
Reference in New Issue
Block a user