* Remove deprecated syntax Signed-off-by: Nick Cameron <nrc@ncameron.org> * fix one test * fix sketch on revolved face test * fix test: empty-scene default-planes act as expected * fix up more tests * another fix * remove another const --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch>
17 lines
219 B
Plaintext
17 lines
219 B
Plaintext
// This tests computed properties.
|
|
|
|
arr = [0, 0, 0, 10]
|
|
i = 3
|
|
ten = arr[i]
|
|
|
|
assert(ten, isEqualTo = 10, error = "oops")
|
|
|
|
p = "foo"
|
|
obj = {
|
|
foo: 1,
|
|
bar: 0,
|
|
}
|
|
one = obj[p]
|
|
|
|
assert(one, isEqualTo = 1, error = "oops")
|