...

Text file src/cuelang.org/go/cue/testdata/basicrewrite/005_boolean_arithmetic.txtar

Documentation: cuelang.org/go/cue/testdata/basicrewrite

     1# DO NOT EDIT; generated by go run testdata/gen.go
     2#
     3#name: boolean arithmetic
     4#evalPartial
     5-- in.cue --
     6a: true && true
     7b: true || false
     8c: false == true
     9d: false != true
    10e: true & true
    11f: true & false
    12-- out/def --
    13a: true
    14b: true
    15c: false
    16d: true
    17e: true
    18f: _|_ // 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 --
    32Leaks:  0
    33Freed:  7
    34Reused: 5
    35Allocs: 2
    36Retain: 0
    37
    38Unifications: 7
    39Conjuncts:    9
    40Disjuncts:    7
    41-- out/eval --
    42Errors:
    43f: conflicting values false and true:
    44    ./in.cue:6:4
    45    ./in.cue:6:11
    46
    47Result:
    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}

View as plain text