leo/disabled_tests/compiler/array/slice_lower.leo

15 lines
298 B
Plaintext
Raw Normal View History

2021-05-05 21:25:24 +03:00
/*
namespace: Compile
expectation: Pass
input_file: input/dummy.in
*/
function main(y: bool) -> bool {
const arr: [u32; 9] = [0, 1, 2, 3, 4, 5, 6, 7, 8];
const expected: [u32; 2] = [0, 1];
2020-12-10 01:42:15 +03:00
const actual = arr[..2]; // Should produce [0, 1]
2020-12-10 01:42:15 +03:00
2021-07-01 23:40:29 +03:00
return (expected == actual) == y;
2021-05-05 21:25:24 +03:00
}