# DO NOT EDIT; generated by go run testdata/gen.go | |
# | |
#name: comparison | |
#evalPartial | |
-- in.cue -- | |
lss: 1 < 2 | |
leq: 1 <= 1.0 | |
leq: 2.0 <= 3 | |
eql: 1 == 1.0 | |
neq: 1.0 == 1 | |
gtr: !(2 > 3) | |
geq: 2.0 >= 2 | |
seq: "a"+"b" == "ab" | |
err: 2 == "s" | |
-- out/def -- | |
lss: true | |
leq: true | |
eql: true | |
neq: true | |
gtr: true | |
geq: true | |
seq: true | |
err: _|_ // invalid operation 2 == "s" (mismatched types int and string) | |
-- out/legacy-debug -- | |
<0>{lss: true, leq: true, eql: true, neq: true, gtr: true, geq: true, seq: true, err: _|_((2 == "s"):invalid operation 2 == "s" (mismatched types int and string))} | |
-- out/compile -- | |
--- in.cue | |
{ | |
lss: (1 < 2) | |
leq: (1 <= 1.0) | |
leq: (2.0 <= 3) | |
eql: (1 == 1.0) | |
neq: (1.0 == 1) | |
gtr: !(2 > 3) | |
geq: (2.0 >= 2) | |
seq: (("a" + "b") == "ab") | |
err: (2 == "s") | |
} |