create test

This commit is contained in:
evan-schott 2023-09-25 16:42:16 -07:00
parent dcf03dd393
commit b8321a7cb4
2 changed files with 18 additions and 0 deletions

View File

@ -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"

View File

@ -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;
}
}