Skip to content

Commit

Permalink
Expand test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpy committed Mar 21, 2024
1 parent ae10d4e commit 9703fec
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/grammar/test/case-25.tact
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ fun anotherFunction(
return (a >> b) || (a << (32 - b));
}

extends fun extension(self: Int, c: Int, d: Int) {
return self + c + d;
}

fun coverage(a: Int, b: Int) {
let k: Int = a.extension(
b,
4,
);

let c: Int = anotherFunction(
a,
b,
Expand All @@ -24,4 +33,15 @@ fun oneMoreFunction(
a,
b,
);
}
}

contract TestContract {
init(arg1: Int, arg2: Int) {}
}

fun test() {
let k: StateInit = initOf TestContract(
2,
3,
);
}

0 comments on commit 9703fec

Please sign in to comment.