Add some extra tests

This commit is contained in:
toasted-nutbread 2020-03-13 18:20:22 -04:00
parent 7e1e7d59cd
commit a267799cd9

View File

@ -85,6 +85,7 @@ function testGetProperty2() {
[['value5', 1, 0], 'Invalid path: value5[1][0]'],
[['value5', 2, 'invalid'], 'Invalid path: value5[2].invalid'],
[['value5', 2, 0], 'Invalid path: value5[2][0]'],
[['value5', 2, 0, 'invalid'], 'Invalid path: value5[2][0]'],
[['value5', 2.5], 'Invalid index']
];
@ -132,6 +133,7 @@ function testSetProperty2() {
[['value5', 1, 'invalid'], 'Invalid path: value5[1].invalid'],
[['value5', 2, 'invalid'], 'Invalid path: value5[2].invalid'],
[['value5', 2, 0], 'Invalid path: value5[2][0]'],
[['value5', 2, 0, 'invalid'], 'Invalid path: value5[2][0]'],
[['value5', 2.5], 'Invalid index']
];