mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 18:38:45 +00:00
Allow json tests to be easily filtered
This commit is contained in:
parent
703c6684d1
commit
a05716bd20
@ -910,7 +910,7 @@ fn checkNext(p: *TokenStream, id: Token.Id) void {
|
||||
debug.assert(token.id == id);
|
||||
}
|
||||
|
||||
test "token" {
|
||||
test "json.token" {
|
||||
const s =
|
||||
\\{
|
||||
\\ "Image": {
|
||||
@ -980,7 +980,7 @@ pub fn validate(s: []const u8) bool {
|
||||
return p.complete;
|
||||
}
|
||||
|
||||
test "json validate" {
|
||||
test "json.validate" {
|
||||
debug.assert(validate("{}"));
|
||||
}
|
||||
|
||||
@ -1348,7 +1348,7 @@ pub const Parser = struct {
|
||||
}
|
||||
};
|
||||
|
||||
test "json parser dynamic" {
|
||||
test "json.parser.dynamic" {
|
||||
var p = Parser.init(debug.global_allocator, false);
|
||||
defer p.deinit();
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user