cuelang.org/go@v0.10.1/cue/testdata/basicrewrite/005_boolean_arithmetic.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 #name: boolean arithmetic 4 #evalPartial 5 -- in.cue -- 6 a: true && true 7 b: true || false 8 c: false == true 9 d: false != true 10 e: true & true 11 f: true & false 12 -- out/def -- 13 a: true 14 b: true 15 c: false 16 d: true 17 e: true 18 f: _|_ // conflicting values true and false 19 -- out/legacy-debug -- 20 <0>{a: true, b: true, c: false, d: true, e: true, f: _|_(true:conflicting values true and false)} 21 -- out/compile -- 22 --- in.cue 23 { 24 a: (true && true) 25 b: (true || false) 26 c: (false == true) 27 d: (false != true) 28 e: (true & true) 29 f: (true & false) 30 } 31 -- out/eval/stats -- 32 Leaks: 0 33 Freed: 7 34 Reused: 5 35 Allocs: 2 36 Retain: 0 37 38 Unifications: 7 39 Conjuncts: 9 40 Disjuncts: 7 41 -- out/eval -- 42 Errors: 43 f: conflicting values false and true: 44 ./in.cue:6:4 45 ./in.cue:6:11 46 47 Result: 48 (_|_){ 49 // [eval] 50 a: (bool){ true } 51 b: (bool){ true } 52 c: (bool){ false } 53 d: (bool){ true } 54 e: (bool){ true } 55 f: (_|_){ 56 // [eval] f: conflicting values false and true: 57 // ./in.cue:6:4 58 // ./in.cue:6:11 59 } 60 }