mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 09:02:58 +03:00
8 lines
207 B
Plaintext
8 lines
207 B
Plaintext
|
function main() {
|
||
|
let arr: [u32; 9] = [0, 1, 2, 3, 4, 5, 6, 7, 8];
|
||
|
let expected: [u32; 2] = [0, 1];
|
||
|
|
||
|
let actual = arr[..2]; // Should produce [0, 1]
|
||
|
|
||
|
console.assert(expected == actual);
|
||
|
}
|