updated tests

This commit is contained in:
0rphon 2022-03-08 01:01:30 -08:00
parent 39ea7a3ceb
commit 9afee5e328
42 changed files with 18 additions and 284 deletions

View File

@ -287,25 +287,3 @@ outputs:
col_stop: 10
path: ""
content: "x[x].0[x]"
- Access:
Array:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x[0xb1]\\\"}\"}"
index:
Value:
Implicit:
- "0xb1"
- span:
line_start: 1
line_stop: 1
col_start: 3
col_stop: 7
path: ""
content: "x[0xb1]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: ""
content: "x[0xb1]"

View File

@ -127,39 +127,6 @@ outputs:
col_stop: 10
path: ""
content: "x[0..100]"
- Access:
ArrayRange:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x[0xb1..0xb3]\\\"}\"}"
left:
Value:
Implicit:
- "0xb1"
- span:
line_start: 1
line_stop: 1
col_start: 3
col_stop: 7
path: ""
content: "x[0xb1..0xb3]"
right:
Value:
Implicit:
- "0xb3"
- span:
line_start: 1
line_stop: 1
col_start: 9
col_stop: 13
path: ""
content: "x[0xb1..0xb3]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 14
path: ""
content: "x[0xb1..0xb3]"
- Access:
Array:
array:

View File

@ -116,16 +116,3 @@ outputs:
col_stop: 6
path: ""
content: x.2.2
- Access:
Tuple:
tuple:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x.0x1\\\"}\"}"
index:
value: "0x1"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: ""
content: x.0x1

View File

@ -2,14 +2,14 @@
namespace: ParseExpression
expectation: Fail
outputs:
- "Error [EPAR0370031]: Block comment does not close with content: /*."
- "Error [EPAR0370031]: Block comment does not close with content: /* test."
- "Error [EPAR0370031]: Block comment does not close with content: `/*`."
- "Error [EPAR0370031]: Block comment does not close with content: `/* test`."
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '/'\n --> test:1:1\n |\n 1 | / /\n | ^"
- "Error [EPAR0370031]: Block comment does not close with content: /*/."
- "Error [EPAR0370031]: Block comment does not close with content: `/*/`."
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '*'\n --> test:1:1\n |\n 1 | */\n | ^"
- "Error [EPAR0370032]: Could not lex the following content: 🦀**/."
- "Error [EPAR0370032]: Could not lex the following content: 🦀*/."
- "Error [EPAR0370031]: Block comment does not close with content: /*🦀/."
- "Error [EPAR0370031]: Block comment does not close with content: /**🦀."
- "Error [EPAR0370031]: Block comment does not close with content: /*🦀."
- "Error [EPAR0370031]: Block comment does not close with content: /*/*."
- "Error [EPAR0370032]: Could not lex the following content: `🦀**/`."
- "Error [EPAR0370032]: Could not lex the following content: `🦀*/`."
- "Error [EPAR0370031]: Block comment does not close with content: `/*🦀/`."
- "Error [EPAR0370031]: Block comment does not close with content: `/**🦀`."
- "Error [EPAR0370031]: Block comment does not close with content: `/*🦀`."
- "Error [EPAR0370031]: Block comment does not close with content: `/*/*`."

View File

@ -691,17 +691,6 @@ outputs:
col_stop: 7
path: ""
content: 1group
- Value:
Group:
Single:
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 9
path: ""
content: "0xbgroup"
- Unary:
inner:
Value:

View File

@ -7,7 +7,6 @@ outputs:
- "'123' @ 1:1-4"
- "'456' @ 1:1-4"
- "'123' @ 1:1-4,'456' @ 1:5-8"
- "'0x1b' @ 1:1-5"
- "'87377802873778028737780287377802873778028737780287377802873778028737780287377802' @ 1:1-81"
- "'8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802' @ 1:1-401"
- "'340130024' @ 1:1-10"

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 8
path: ""
content: 456i128
- Value:
Integer:
- I128
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: ""
content: "0xbi128"
- Value:
Integer:
- I128

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 7
path: ""
content: 456i16
- Value:
Integer:
- I16
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: ""
content: "0xbi16"
- Value:
Integer:
- I16

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 7
path: ""
content: 456i32
- Value:
Integer:
- I32
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: ""
content: "0xbi32"
- Value:
Integer:
- I32

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 7
path: ""
content: 456i64
- Value:
Integer:
- I64
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: ""
content: "0xbi64"
- Value:
Integer:
- I64

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 6
path: ""
content: 456i8
- Value:
Integer:
- I8
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: ""
content: "0xbi8"
- Value:
Integer:
- I8

View File

@ -32,16 +32,6 @@ outputs:
col_stop: 4
path: ""
content: "456"
- Value:
Implicit:
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: ""
content: "0xb"
- Value:
Implicit:
- "87377802873778028737780287377802873778028737780287377802873778028737780287377802"

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 9
path: ""
content: 456group
- Value:
Group:
Single:
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 9
path: ""
content: "0xbgroup"
- Value:
Group:
Single:

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 8
path: ""
content: 456u128
- Value:
Integer:
- U128
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: ""
content: "0xbu128"
- Value:
Integer:
- U128

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 7
path: ""
content: 456u16
- Value:
Integer:
- U16
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: ""
content: "0xbu16"
- Value:
Integer:
- U16

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 7
path: ""
content: 456u32
- Value:
Integer:
- U32
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: ""
content: "0xbu32"
- Value:
Integer:
- U32

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 7
path: ""
content: 456u32
- Value:
Integer:
- U64
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: ""
content: "0xbu64"
- Value:
Integer:
- U32

View File

@ -34,17 +34,6 @@ outputs:
col_stop: 6
path: ""
content: 456u8
- Value:
Integer:
- U8
- "0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: ""
content: "0xbu8"
- Value:
Integer:
- U8

View File

@ -4,6 +4,7 @@ expectation: Fail
outputs:
- "Error [EPAR0370027]: Expected a closed string but found `\"Hello world!`."
- "Error [EPAR0370027]: Expected a closed string but found `\"\\\"`."
- "Error [EPAR0370027]: Expected a closed string but found `\"\\`."
- "Error [EPAR0370026]: Expected a valid escape character but found `l`."
- "Error [EPAR0370027]: Expected a closed string but found `\"\\uaaa\"`."
- "Error [EPAR0370027]: Expected a closed string but found `\"\\u\"`."

View File

@ -143,24 +143,3 @@ outputs:
col_stop: 5
path: ""
content: "-5i8"
- Value:
Implicit:
- "-0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: ""
content: "-0xb"
- Value:
Integer:
- U8
- "-0xb"
- span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: ""
content: "-0xbu8"

View File

@ -2,4 +2,4 @@
namespace: Parse
expectation: Fail
outputs:
- "Error [EPAR0370032]: Could not lex the following content: \\."
- "Error [EPAR0370032]: Could not lex the following content: `\\`."

View File

@ -15,4 +15,4 @@ outputs:
- "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | x {x: y, y: z} = y;\n | ^^^^^^^^^^^^^^"
- "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | x() = y;\n | ^^^"
- "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | x.y() = y;\n | ^^^^^"
- "Error [EPAR0370032]: Could not lex the following content: 🦀 = y;."
- "Error [EPAR0370032]: Could not lex the following content: `🦀 = y;`."

View File

@ -43,4 +43,4 @@ outputs:
- "Error [EPAR0370003]: unexpected EOF\n --> test:1:11\n |\n 1 | let x: [u8;\n | ^"
- "Error [EPAR0370005]: expected ] -- got 'u8'\n --> test:1:14\n |\n 1 | let x: [u8; 1u8] = [1,\n | ^^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', got ']'\n --> test:1:15\n |\n 1 | let dbg: u8 = ];\n | ^"
- "Error [EPAR0370032]: Could not lex the following content: 🦀: u8 = 0;."
- "Error [EPAR0370032]: Could not lex the following content: `🦀: u8 = 0;`."

View File

@ -4,7 +4,7 @@ expectation: Fail
outputs:
- "Error [EPAR0370009]: unexpected string: expected 'expression', got ']'\n --> test:1:2\n |\n 1 | (];\n | ^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', got ')'\n --> test:1:2\n |\n 1 | [);\n | ^"
- "Error [EPAR0370032]: Could not lex the following content: \\y;."
- "Error [EPAR0370032]: Could not lex the following content: |;."
- "Error [EPAR0370032]: Could not lex the following content: `\\y;`."
- "Error [EPAR0370032]: Could not lex the following content: `|;`."
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '}'\n --> test:1:3\n |\n 1 | x[};\n | ^"
- "Error [EPAR0370005]: expected ) -- got ']'\n --> test:1:6\n |\n 1 | (x, y];\n | ^"

View File

@ -12,4 +12,3 @@ x[0]()
x()[0]
x(y)::y(x)
x[x].0[x]
x[0xb1]

View File

@ -8,8 +8,6 @@ x[1..]
x[..1]
x[1..1]
x[0..100]
x[0xb1..0xb3]
x[323452345.2345234523453453][323452345.2345234523453453]

View File

@ -9,4 +9,3 @@ x.2
x.0.0
x.1.1
x.2.2
x.0x1

View File

@ -69,6 +69,4 @@ expectation: Pass
1group
0xbgroup
-1group

View File

@ -12,8 +12,6 @@ expectation: Pass
123 456
0x1b
87377802873778028737780287377802873778028737780287377802873778028737780287377802
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456i128
0xbi128
87377802873778028737780287377802873778028737780287377802873778028737780287377802i128
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802i128

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456i16
0xbi16
87377802873778028737780287377802873778028737780287377802873778028737780287377802i16
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802i16

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456i32
0xbi32
87377802873778028737780287377802873778028737780287377802873778028737780287377802i32
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802i32

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456i64
0xbi64
87377802873778028737780287377802873778028737780287377802873778028737780287377802i64
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802i64

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456i8
0xbi8
87377802873778028737780287377802873778028737780287377802873778028737780287377802i8
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802i8

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456
0xb
87377802873778028737780287377802873778028737780287377802873778028737780287377802
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456group
0xbgroup
87377802873778028737780287377802873778028737780287377802873778028737780287377802group
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802group

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456u128
0xbu128
87377802873778028737780287377802873778028737780287377802873778028737780287377802u128
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802u128

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456u16
0xbu16
87377802873778028737780287377802873778028737780287377802873778028737780287377802u16
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802u16

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456u32
0xbu32
87377802873778028737780287377802873778028737780287377802873778028737780287377802u32
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802u32

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456u32
0xbu64
87377802873778028737780287377802873778028737780287377802873778028737780287377802u32
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802u32

View File

@ -8,8 +8,6 @@ expectation: Pass
123
456u8
0xbu8
87377802873778028737780287377802873778028737780287377802873778028737780287377802u8
8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802u8

View File

@ -12,6 +12,3 @@ expectation: Pass
-5
-5i8
-0xb
-0xbu8