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

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