github.com/solo-io/cue@v0.4.7/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 --
    32  Errors:
    33  f: conflicting values false and true:
    34      ./in.cue:6:4
    35      ./in.cue:6:11
    36  
    37  Result:
    38  (_|_){
    39    // [eval]
    40    a: (bool){ true }
    41    b: (bool){ true }
    42    c: (bool){ false }
    43    d: (bool){ true }
    44    e: (bool){ true }
    45    f: (_|_){
    46      // [eval] f: conflicting values false and true:
    47      //     ./in.cue:6:4
    48      //     ./in.cue:6:11
    49    }
    50  }