aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/root.zig')
-rw-r--r--src/root.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/root.zig b/src/root.zig
index ac9c21c..c81ae61 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -392,3 +392,8 @@ test "array constructor" {
\\]
, "{\"a\":1,\"b\":2}", "[.a, [.a, [.a, .b]]]");
}
+
+test "each" {
+ try testRunMultiple(&.{ "1", "2", "3" }, "[1,2,3]", ".[]");
+ try testRunMultiple(&.{ "1", "2", "3" }, "[[1],[2],[3]]", ".[] | .[]");
+}