leo/tests/compiler/group/operator_methods.leo
2022-08-04 20:00:40 -07:00

21 lines
387 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: inputs/three.in
*/
@program
function main(a: group, b: group) -> bool {
// unary
let e: group = a.double();
let g: group = a.neg();
// binary
let j: group = a.add(b);
let o: bool = a.eq(b);
let t: group = a.mul(2scalar);
let q: group = 2scalar.mul(a);
let w: bool = a.neq(b);
return a == b;
}