| # DO NOT EDIT; generated by go run testdata/gen.go |
| # |
| #name: boolean arithmetic |
| #evalPartial |
| -- in.cue -- |
| a: true && true |
| b: true || false |
| c: false == true |
| d: false != true |
| e: true & true |
| f: true & false |
| -- out/def -- |
| a: true |
| b: true |
| c: false |
| d: true |
| e: true |
| f: _|_ // conflicting values true and false |
| -- out/legacy-debug -- |
| <0>{a: true, b: true, c: false, d: true, e: true, f: _|_(true:conflicting values true and false)} |
| -- out/compile -- |
| --- in.cue |
| { |
| a: (true && true) |
| b: (true || false) |
| c: (false == true) |
| d: (false != true) |
| e: (true & true) |
| f: (true & false) |
| } |
| -- out/eval -- |
| Errors: |
| f: conflicting values false and true: |
| ./in.cue:6:4 |
| ./in.cue:6:11 |
| |
| Result: |
| (_|_){ |
| // [eval] |
| a: (bool){ true } |
| b: (bool){ true } |
| c: (bool){ false } |
| d: (bool){ true } |
| e: (bool){ true } |
| f: (_|_){ |
| // [eval] f: conflicting values false and true: |
| // ./in.cue:6:4 |
| // ./in.cue:6:11 |
| } |
| } |