Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Run test function random with set_array
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jan 25, 2022
1 parent ab3fedc commit 2a3222f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions data/review/random/random.fix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ random ("others", "25")
random("animals[].$append", "25")

#This seems not to work.
set_array("bnimals[]")
random("bnimals[].$append.number", "25")

#This seems not to work. Do not know why. Not an index-number but $append is element name.
set_array("cnimals[]")
random("cnimals.$append", "25")
13 changes: 8 additions & 5 deletions data/review/random/result.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"animals" : [ "dog", "cat", "20" ],
"others" : "1",
"animals" : [ "dog", "cat", "24" ],
"others" : "0",
"fictional" : "unicorn",
"number" : "11",
"bnimals" : [ "20" ],
"number" : "18",
"bnimals" : [ {
"number" : "18"
} ],
"cnimals" : [ ],
"cnimals" : {
"$append" : "1"
"$append" : "10"
}
}

0 comments on commit 2a3222f

Please sign in to comment.