blob: 2b95dd3c57cf531061324e0438c39936d9bde114 [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
#name: list arithmetic
#evalPartial
-- in.cue --
list: [1, 2, 3]
mul0: list * 0
mul1: list * 1
mul2: 2 * list
list1: [1]
mul1_0: list1 * 0
mul1_1: 1 * list1
mul1_2: list1 * 2
e: list * -1
-- out/def --
list: [1, 2, 3]
mul0: []
mul1: [1, 2, 3]
mul2: [1, 2, 3, 1, 2, 3]
list1: [1]
mul1_0: []
mul1_1: [1]
mul1_2: [1, 1]
e: _|_ // negative number -1 multiplies list
-- out/legacy-debug --
<0>{list: [1,2,3], mul0: [], mul1: [1,2,3], mul2: [1,2,3,1,2,3], list1: [1], mul1_0: [], mul1_1: [1], mul1_2: [1,1], e: _|_((<1>.list * -1):negative number -1 multiplies list)}