| 1 | [ |
| 2 | { |
| 3 | "id": "0011-insert-remove:001:insert1", |
| 4 | "expression": "insert before(simpleList,position,\"x\")", |
| 5 | "expected": [ |
| 6 | "a", |
| 7 | "x", |
| 8 | "b", |
| 9 | "c" |
| 10 | ], |
| 11 | "expected_type": "list", |
| 12 | "comparison": "exact", |
| 13 | "deviation": null, |
| 14 | "context": { |
| 15 | "simpleList": [ |
| 16 | "a", |
| 17 | "b", |
| 18 | "c" |
| 19 | ], |
| 20 | "nestedList": [ |
| 21 | [ |
| 22 | "o" |
| 23 | ], |
| 24 | [ |
| 25 | "p", |
| 26 | "q" |
| 27 | ] |
| 28 | ], |
| 29 | "position": 2.0 |
| 30 | } |
| 31 | }, |
| 32 | { |
| 33 | "id": "0011-insert-remove:001:insert3", |
| 34 | "expression": "insert before(nestedList,position,simpleList)", |
| 35 | "expected": [ |
| 36 | [ |
| 37 | "o" |
| 38 | ], |
| 39 | [ |
| 40 | "a", |
| 41 | "b", |
| 42 | "c" |
| 43 | ], |
| 44 | [ |
| 45 | "p", |
| 46 | "q" |
| 47 | ] |
| 48 | ], |
| 49 | "expected_type": "list", |
| 50 | "comparison": "exact", |
| 51 | "deviation": null, |
| 52 | "context": { |
| 53 | "simpleList": [ |
| 54 | "a", |
| 55 | "b", |
| 56 | "c" |
| 57 | ], |
| 58 | "nestedList": [ |
| 59 | [ |
| 60 | "o" |
| 61 | ], |
| 62 | [ |
| 63 | "p", |
| 64 | "q" |
| 65 | ] |
| 66 | ], |
| 67 | "position": 2.0 |
| 68 | } |
| 69 | }, |
| 70 | { |
| 71 | "id": "0011-insert-remove:001:literalNestedList", |
| 72 | "expression": "[[\"a\",\"b\"],[\"b\",\"c\"]]", |
| 73 | "expected": [ |
| 74 | [ |
| 75 | "a", |
| 76 | "b" |
| 77 | ], |
| 78 | [ |
| 79 | "b", |
| 80 | "c" |
| 81 | ] |
| 82 | ], |
| 83 | "expected_type": "list", |
| 84 | "comparison": "exact", |
| 85 | "deviation": null, |
| 86 | "context": { |
| 87 | "simpleList": [ |
| 88 | "a", |
| 89 | "b", |
| 90 | "c" |
| 91 | ], |
| 92 | "nestedList": [ |
| 93 | [ |
| 94 | "o" |
| 95 | ], |
| 96 | [ |
| 97 | "p", |
| 98 | "q" |
| 99 | ] |
| 100 | ], |
| 101 | "position": 2.0 |
| 102 | } |
| 103 | }, |
| 104 | { |
| 105 | "id": "0011-insert-remove:001:remove1", |
| 106 | "expression": "remove(simpleList,position)", |
| 107 | "expected": [ |
| 108 | "a", |
| 109 | "c" |
| 110 | ], |
| 111 | "expected_type": "list", |
| 112 | "comparison": "exact", |
| 113 | "deviation": null, |
| 114 | "context": { |
| 115 | "simpleList": [ |
| 116 | "a", |
| 117 | "b", |
| 118 | "c" |
| 119 | ], |
| 120 | "nestedList": [ |
| 121 | [ |
| 122 | "o" |
| 123 | ], |
| 124 | [ |
| 125 | "p", |
| 126 | "q" |
| 127 | ] |
| 128 | ], |
| 129 | "position": 2.0 |
| 130 | } |
| 131 | } |
| 132 | ] |