Skip to content

Commit

Permalink
tests: Code that uses multi-value block results
Browse files Browse the repository at this point in the history
extracted from #1459
  • Loading branch information
nomeata committed Dec 13, 2021
1 parent 55d69fc commit 2b27ae5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/run-drun/multi-value.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
func foo(b : Bool, n : Int) : (Int, Int) {
if (b) {
(n,1)
} else {
(n,2)
}
};
ignore(foo(true,5));
2 changes: 2 additions & 0 deletions test/run-drun/ok/multi-value.drun-run.ok
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ingress Completed: Reply: 0x4449444c016c01b3c4b1f204680100010a00000000000000000101
ingress Completed: Reply: 0x4449444c0000
4 changes: 4 additions & 0 deletions test/run-drun/ok/multi-value.ic-ref-run.ok
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
→ update create_canister(record {settings = null})
← replied: (record {hymijyo = principal "cvccv-qqaaq-aaaaa-aaaaa-c"})
→ update install_code(record {arg = blob ""; kca_xin = blob "\00asm\01\00\00\00\0…
← replied: ()

0 comments on commit 2b27ae5

Please sign in to comment.