mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-30 05:02:04 +03:00
318 lines
10 KiB
Plaintext
318 lines
10 KiB
Plaintext
---
|
|
ns: ParseExpression
|
|
expectation: Pass
|
|
outputs:
|
|
- ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
Value:
|
|
Integer:
|
|
- U8
|
|
- "0"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 2
|
|
col_stop: 5
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0u8, 1, 2, 3]"
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "1"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 7
|
|
col_stop: 8
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0u8, 1, 2, 3]"
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "2"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 10
|
|
col_stop: 11
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0u8, 1, 2, 3]"
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "3"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 13
|
|
col_stop: 14
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0u8, 1, 2, 3]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 1
|
|
col_stop: 15
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0u8, 1, 2, 3]"
|
|
- ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "1"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 2
|
|
col_stop: 3
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[1]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 1
|
|
col_stop: 4
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[1]"
|
|
- ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
Value:
|
|
Integer:
|
|
- U8
|
|
- "1"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 2
|
|
col_stop: 5
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[1u8]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 1
|
|
col_stop: 6
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[1u8]"
|
|
- ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
Value:
|
|
Integer:
|
|
- U8
|
|
- "1"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 2
|
|
col_stop: 5
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[1u8,]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 1
|
|
col_stop: 7
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[1u8,]"
|
|
- ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "0"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 2
|
|
col_stop: 3
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0, 1,]"
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "1"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 5
|
|
col_stop: 6
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0, 1,]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 1
|
|
col_stop: 8
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0, 1,]"
|
|
- ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "0"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 2
|
|
col_stop: 3
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0,1,]"
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "1"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 4
|
|
col_stop: 5
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0,1,]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 1
|
|
col_stop: 7
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[0,1,]"
|
|
- ArrayInline:
|
|
elements: []
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 1
|
|
col_stop: 3
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[]"
|
|
- ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "1"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 3
|
|
col_stop: 4
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[1,2,3],[1,2,3]]"
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "2"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 5
|
|
col_stop: 6
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[1,2,3],[1,2,3]]"
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "3"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 7
|
|
col_stop: 8
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[1,2,3],[1,2,3]]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 2
|
|
col_stop: 9
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[1,2,3],[1,2,3]]"
|
|
- Expression:
|
|
ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "1"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 11
|
|
col_stop: 12
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[1,2,3],[1,2,3]]"
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "2"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 13
|
|
col_stop: 14
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[1,2,3],[1,2,3]]"
|
|
- Expression:
|
|
Value:
|
|
Implicit:
|
|
- "3"
|
|
- line_start: 1
|
|
line_stop: 1
|
|
col_start: 15
|
|
col_stop: 16
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[1,2,3],[1,2,3]]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 10
|
|
col_stop: 17
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[1,2,3],[1,2,3]]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 1
|
|
col_stop: 18
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[1,2,3],[1,2,3]]"
|
|
- ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
ArrayInline:
|
|
elements: []
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 2
|
|
col_stop: 4
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[]]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 1
|
|
col_stop: 5
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[]]"
|
|
- ArrayInline:
|
|
elements:
|
|
- Expression:
|
|
ArrayInline:
|
|
elements: []
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 2
|
|
col_stop: 4
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[], []]"
|
|
- Expression:
|
|
ArrayInline:
|
|
elements: []
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 6
|
|
col_stop: 8
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[], []]"
|
|
span:
|
|
line_start: 1
|
|
line_stop: 1
|
|
col_start: 1
|
|
col_stop: 9
|
|
path: /home/p/aleo/leo/parser/../tests/parser/expression/array_inline.leo
|
|
content: "[[], []]"
|