Skip to content

Commit

Permalink
Add multiple integration tests from old test suit #160
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Mar 2, 2022
1 parent ffaca00 commit 96d20d6
Show file tree
Hide file tree
Showing 13 changed files with 55 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
count("animals")

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"animals" : [ "zebra", "Zebra" ],
"investigators" : [ "Justus", "Bob" ],
"tools" : [ "saw", "bow" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"animals" : [ "dog", "cat", "zebra", "Zebra" ],
"investigators" : [ "Justus", "Peter", "Bob" ],
"tools" : [ "hammer", "saw", "bow" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
filter("animals[]", "[Zz]ebra")
filter("investigators[]", "Justus|Bob")
filter("tools[]", ".*w")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FLUX_DIR + "input.json"
|open-file
|as-records
|decode-json
|fix(FLUX_DIR + "test.fix")
|encode-json(prettyPrinting="true")
|write(FLUX_DIR + "output-metafix.json")
;
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"animal" : "2"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"animal": "canary"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
index("animal", "n")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FLUX_DIR + "input.json"
|open-file
|as-records
|decode-json
|fix(FLUX_DIR + "test.fix")
|encode-json(prettyPrinting="true")
|write(FLUX_DIR + "output-metafix.json")
;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bnimal" : "cat",
"animal" : "cat"
}
{
"cnimal" : "zebra",
"animal" : "zebra"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"bnimal": "cat"}
{"cnimal": "zebra"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
copy_field("?nimal", "animal")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FLUX_DIR + "input.json"
|open-file
|as-records
|decode-json
|fix(FLUX_DIR + "test.fix")
|encode-json(prettyPrinting="true")
|write(FLUX_DIR + "output-metafix.json")
;

0 comments on commit 96d20d6

Please sign in to comment.