mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-01 08:19:32 +03:00
42 lines
805 B
Plaintext
42 lines
805 B
Plaintext
|
/*
|
||
|
namespace: Compile
|
||
|
expectation: Pass
|
||
|
*/
|
||
|
|
||
|
program test.aleo {
|
||
|
|
||
|
transition foo(a: u8, b: u8) -> () {
|
||
|
console.assert_eq(a, b);
|
||
|
console.assert_eq(b, a);
|
||
|
return ();
|
||
|
}
|
||
|
|
||
|
transition bar(a: u8, b: u8) -> () {
|
||
|
console.assert_eq(a, b);
|
||
|
console.assert_eq(b, a);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
transition baz(a: u8, b: u8) -> () {
|
||
|
console.assert_eq(a, b);
|
||
|
console.assert_eq(b, a);
|
||
|
}
|
||
|
|
||
|
transition floo(a: u8, b: u8) {
|
||
|
console.assert_eq(a, b);
|
||
|
console.assert_eq(b, a);
|
||
|
return ();
|
||
|
}
|
||
|
|
||
|
transition blar(a: u8, b: u8) {
|
||
|
console.assert_eq(a, b);
|
||
|
console.assert_eq(b, a);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
transition blaz(a: u8, b: u8) {
|
||
|
console.assert_eq(a, b);
|
||
|
console.assert_eq(b, a);
|
||
|
}
|
||
|
}
|