cuelang.org/go@v0.13.0/cue/testdata/resolve/007_inequality.txtar (about)

     1  #name: inequality
     2  #evalPartial
     3  -- in.cue --
     4  a: 1 != 2
     5  b: 1 != null
     6  c: true == null
     7  d: null != {}
     8  e: null == []
     9  f: 0 == 0.0 // types are unified first TODO: make this consistent
    10  -- out/def --
    11  a: true
    12  b: true
    13  c: false
    14  d: true
    15  e: false
    16  f: true
    17  -- out/export --
    18  a: true
    19  b: true
    20  c: false
    21  d: true
    22  e: false
    23  f: true
    24  -- out/yaml --
    25  a: true
    26  b: true
    27  c: false
    28  d: true
    29  e: false
    30  f: true
    31  -- out/json --
    32  {"a":true,"b":true,"c":false,"d":true,"e":false,"f":true}
    33  -- out/legacy-debug --
    34  <0>{a: true, b: true, c: false, d: true, e: false, f: true}
    35  -- out/compile --
    36  --- in.cue
    37  {
    38    a: (1 != 2)
    39    b: (1 != null)
    40    c: (true == null)
    41    d: (null != {})
    42    e: (null == [])
    43    f: (0 == 0.0)
    44  }
    45  -- out/eval/stats --
    46  Leaks:  2
    47  Freed:  7
    48  Reused: 5
    49  Allocs: 4
    50  Retain: 2
    51  
    52  Unifications: 9
    53  Conjuncts:    9
    54  Disjuncts:    9
    55  -- out/eval --
    56  (struct){
    57    a: (bool){ true }
    58    b: (bool){ true }
    59    c: (bool){ false }
    60    d: (bool){ true }
    61    e: (bool){ false }
    62    f: (bool){ true }
    63  }