initial commit of actions

This commit is contained in:
Dominik Polakovics Polakovics 2026-01-31 18:56:04 +01:00
commit 949ece5785
44660 changed files with 12034344 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{
"name": "array deep bug #10",
"options": {
"useArray": true
},
"input": {
"a[0]": "A0",
"a[1]": "A1",
"a[2]": "A2",
"a[3].b[0].c[0]": "A3B0C0",
"a[3].b[0].c[1]": "A3B0C1"
},
"expected": {
"a": [
"A0",
"A1",
"A2",
{
"b": [
{
"c": [
"A3B0C0",
"A3B0C1"
]
}
]
}
]
}
}

View file

@ -0,0 +1,19 @@
{
"name": "array deep bug2 #10",
"options": {
"useArray": true
},
"input": {
"b.0.c.1": "b0c1",
"b.0.c.2": "b0c2"
},
"expected": {
"b" : [ {
"c" : [
null,
"b0c1",
"b0c2"
]
}]
}
}

View file

@ -0,0 +1,43 @@
{
"name": "empty array",
"input": [
{
"a": []
},
{
"a.0": 1,
"a": []
},
{
"a": [],
"a.0": 2
},
{
"a.0.b": []
},
{
"b.a.0": "b",
"b.a": [],
"b.a.1": "c"
}
],
"expected": [
{
"a": []
},
{
"a": [1]
},
{
"a": [2]
},
{
"a" : [ {"b" : [] } ]
},
{
"b" : {
"a": [ "b", "c" ]
}
}
]
}

View file

@ -0,0 +1,23 @@
{
"name": "empty object",
"input": [
{
"a.b": {}
},
{
"a.b.c": 1,
"a.b": {} ,
"a.b.d": 2
}
],
"expected": [
{
"a" : {"b" : {} }
},
{
"a" : {
"b": { "c": 1, "d": 2 }
}
}
]
}

View file

@ -0,0 +1,8 @@
module.exports = [
require('./array_deep_bug'),
require('./array_deep_bug2'),
require('./empty_array'),
require('./empty_object'),
require('./object_deep_numeric_keys'),
require('./object_deep_numeric_keys2')
]

View file

@ -0,0 +1,30 @@
{
"name": "object deep numeric keys",
"options": {
"useArray": false
},
"input": {
"a[0]": "A0",
"a[1]": "A1",
"a[2]": "A2",
"a[3].b[0].c[0]": "A3B0C0",
"a[3].b[0].c[1]": "A3B0C1"
},
"expected": {
"a": {
"0": "A0",
"1": "A1",
"2": "A2",
"3": {
"b": {
"0": {
"c": {
"0": "A3B0C0",
"1": "A3B0C1"
}
}
}
}
}
}
}

View file

@ -0,0 +1,20 @@
{
"name": "object deep numeric keys 2 #10",
"options": {
"useArray": false
},
"input": {
"b.0.c.1": "b0c1",
"b.0.c.2": "b0c2"
},
"expected": {
"b": {
"0": {
"c": {
"1": "b0c1",
"2": "b0c2"
}
}
}
}
}