Skip to content

Commit

Permalink
create test
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-schott committed Sep 25, 2023
1 parent c15ca6c commit f6ea2b3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
namespace: Compile
expectation: Fail
outputs:
- "Error [ETYC0372082]: Tuple length mismatch:`length 3` tuple of identifiers declared, but length `2` tuple of types given`\n --> compiler-test:5:9\n |\n 5 | let (a,b,c): (u8,u8) = (2u8,3u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372082]: Tuple length mismatch:`length 2` tuple of identifiers declared, but length `3` tuple of types given`\n --> compiler-test:6:9\n |\n 6 | let (d,e): (u8,u8,u8) = (1u8,2u8,3u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"
13 changes: 13 additions & 0 deletions tests/tests/compiler/definition/define_multiple_variables_fail.leo
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
namespace: Compile
expectation: Fail
*/

program test.aleo {
function main(y: bool) -> bool {
let (a,b,c): (u8,u8) = (2u8,3u8);
let (d,e): (u8,u8,u8) = (1u8,2u8,3u8);
return y;
}
}

0 comments on commit f6ea2b3

Please sign in to comment.