| ... | ... | @@ -3268,6 +3268,11 @@ test "stringify struct" { |
| 3268 | 3268 | }{ .foo = 42 }, StringifyOptions{}); |
| 3269 | 3269 | } |
| 3270 | 3270 | |
| 3271 | test "stringify struct with string as array" { |
| 3272 | try teststringify("{\"foo\":\"bar\"}", .{ .foo = "bar" }, StringifyOptions{}); |
| 3273 | try teststringify("{\"foo\":[98,97,114]}", .{ .foo = "bar" }, StringifyOptions{ .string = .Array }); |
| 3274 | } |
| 3275 | |
| 3271 | 3276 | test "stringify struct with indentation" { |
| 3272 | 3277 | try teststringify( |
| 3273 | 3278 | \\{ |