...

Text file src/cuelang.org/go/cue/testdata/eval/expressions.txtar

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

     1-- in.cue --
     2a: 1
     3b: 1 + 2
     4c: 3 - 1
     5d: 5 rem 3
     6-- out/eval/stats --
     7Leaks:  0
     8Freed:  5
     9Reused: 3
    10Allocs: 2
    11Retain: 0
    12
    13Unifications: 5
    14Conjuncts:    5
    15Disjuncts:    5
    16-- out/eval --
    17(struct){
    18  a: (int){ 1 }
    19  b: (int){ 3 }
    20  c: (int){ 2 }
    21  d: (int){ 2 }
    22}
    23-- out/compile --
    24--- in.cue
    25{
    26  a: 1
    27  b: (1 + 2)
    28  c: (3 - 1)
    29  d: (5 rem 3)
    30}

View as plain text