From da28811c500c8fdc77468013840f978781e9ef7d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 29 Apr 2019 14:02:19 -0400 Subject: [PATCH] enable more json tests I think it was a mistake that these weren't getting automatically run by the test suite. --- std/json.zig | 4 ++++ std/{json_test.zig => json/test.zig} | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) rename std/{json_test.zig => json/test.zig} (99%) diff --git a/std/json.zig b/std/json.zig index 551c3a8da7..8d42d1bcf0 100644 --- a/std/json.zig +++ b/std/json.zig @@ -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"); +} diff --git a/std/json_test.zig b/std/json/test.zig similarity index 99% rename from std/json_test.zig rename to std/json/test.zig index a323e6e979..3a3aaed746 100644 --- a/std/json_test.zig +++ b/std/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));