[test] Update tests to include location string.

This commit is contained in:
Alexander Arlt
2022-04-01 23:41:18 -05:00
parent d4c02f2270
commit 0783ad9000
2684 changed files with 5877 additions and 5877 deletions
+1 -1
View File
@@ -15,4 +15,4 @@ object "A" {
}
}
// ----
// ParserError 8794: (226-233): Object name "hello" already exists inside the containing object.
// ParserError 8794: (226-233='"hello"'): Object name "hello" already exists inside the containing object.
@@ -1,4 +1,4 @@
code {
}
// ----
// ParserError 4294: (0-4): Expected keyword "object".
// ParserError 4294: (0-4='code'): Expected keyword "object".
@@ -5,4 +5,4 @@ object "A" {
data "B" hex"00"
}
// ----
// ParserError 8794: (45-48): Object name "B" already exists inside the containing object.
// ParserError 8794: (45-48='"B"'): Object name "B" already exists inside the containing object.
@@ -6,4 +6,4 @@ object "A" {
}
}
// ----
// ParserError 8311: (33-36): Object name cannot be the same as the name of the containing object.
// ParserError 8311: (33-36='"A"'): Object name cannot be the same as the name of the containing object.
@@ -7,4 +7,4 @@ object "A" {
}
}
// ----
// ParserError 8794: (47-50): Object name "B" already exists inside the containing object.
// ParserError 8794: (47-50='"B"'): Object name "B" already exists inside the containing object.
@@ -9,4 +9,4 @@ object "A" {
}
}
// ----
// ParserError 8794: (64-67): Object name "B" already exists inside the containing object.
// ParserError 8794: (64-67='"B"'): Object name "B" already exists inside the containing object.
@@ -4,4 +4,4 @@ object "A" {
data "A" ""
}
// ----
// ParserError 8311: (31-34): Object name cannot be the same as the name of the containing object.
// ParserError 8311: (31-34='"A"'): Object name cannot be the same as the name of the containing object.
@@ -3,4 +3,4 @@ object "A" {
code {}
}
// ----
// ParserError 4846: (15-19): Expected keyword "code".
// ParserError 4846: (15-19='data'): Expected keyword "code".
@@ -3,4 +3,4 @@ object "A" {
data hex"11" ""
}
// ----
// ParserError 2314: (30-37): Expected 'StringLiteral' but got 'HexStringLiteral'
// ParserError 2314: (30-37='hex"11"'): Expected 'StringLiteral' but got 'HexStringLiteral'
@@ -5,4 +5,4 @@ object "A" {
data "1" hex"wronghexencoding"
}
// ----
// ParserError 2314: (37-41): Expected 'StringLiteral' but got 'ILLEGAL'
// ParserError 2314: (37-41='hex"'): Expected 'StringLiteral' but got 'ILLEGAL'
@@ -5,4 +5,4 @@ object "A" {
data "2" hex"0"
}
// ----
// ParserError 2314: (37-41): Expected 'StringLiteral' but got 'ILLEGAL'
// ParserError 2314: (37-41='hex"'): Expected 'StringLiteral' but got 'ILLEGAL'
@@ -7,4 +7,4 @@ object "A" {
data "B" hex"00"
}
// ----
// TypeError 9114: (47-57): Function expects direct literals as arguments.
// TypeError 9114: (47-57='dataoffset'): Function expects direct literals as arguments.
@@ -4,4 +4,4 @@ object "A" {
}
}
// ----
// TypeError 5859: (41-42): Function expects string literal.
// TypeError 5859: (41-42='0'): Function expects string literal.
@@ -5,4 +5,4 @@ object "A" {
data "B" ""
}
// ----
// TypeError 3517: (41-44): Unknown data object "C".
// TypeError 3517: (41-44='"C"'): Unknown data object "C".
@@ -7,4 +7,4 @@ object "A" {
data "B" hex"00"
}
// ----
// TypeError 9114: (47-55): Function expects direct literals as arguments.
// TypeError 9114: (47-55='datasize'): Function expects direct literals as arguments.
@@ -4,4 +4,4 @@ object "A" {
}
}
// ----
// TypeError 5859: (39-40): Function expects string literal.
// TypeError 5859: (39-40='0'): Function expects string literal.
@@ -5,4 +5,4 @@ object "A" {
data "B" ""
}
// ----
// TypeError 3517: (39-42): Unknown data object "C".
// TypeError 3517: (39-42='"C"'): Unknown data object "C".
@@ -2,4 +2,4 @@ object "A" {
data "tmp" ""
}
// ----
// ParserError 4846: (15-19): Expected keyword "code".
// ParserError 4846: (15-19='data'): Expected keyword "code".
@@ -1,4 +1,4 @@
object "A" {
}
// ----
// ParserError 4846: (13-14): Expected keyword "code".
// ParserError 4846: (13-14='}'): Expected keyword "code".
@@ -1,5 +1,5 @@
object "" {
}
// ----
// ParserError 3287: (7-9): Object name cannot be empty.
// ParserError 4846: (12-13): Expected keyword "code".
// ParserError 3287: (7-9='""'): Object name cannot be empty.
// ParserError 4846: (12-13='}'): Expected keyword "code".
@@ -1,3 +1,3 @@
object {
// ----
// ParserError 2314: (7-8): Expected 'StringLiteral' but got '{'
// ParserError 2314: (7-8='{'): Expected 'StringLiteral' but got '{'
@@ -4,4 +4,4 @@ object "A" {
object
// ----
// ParserError 2314: (26-32): Expected end of source but got identifier
// ParserError 2314: (26-32='object'): Expected end of source but got identifier
@@ -3,4 +3,4 @@ object "A" {
code { }
}
// ----
// ParserError 8143: (26-30): Expected keyword "data" or "object" or "}".
// ParserError 8143: (26-30='code'): Expected keyword "data" or "object" or "}".
@@ -5,4 +5,4 @@ object "B" {
code { }
}
// ----
// ParserError 2314: (26-32): Expected end of source but got identifier
// ParserError 2314: (26-32='object'): Expected end of source but got identifier
@@ -2,4 +2,4 @@ object hex"11" {
code {}
}
// ----
// ParserError 2314: (7-14): Expected 'StringLiteral' but got 'HexStringLiteral'
// ParserError 2314: (7-14='hex"11"'): Expected 'StringLiteral' but got 'HexStringLiteral'
@@ -6,4 +6,4 @@ object "A" {
code {}
}
// ----
// ParserError 4846: (15-21): Expected keyword "code".
// ParserError 4846: (15-21='object'): Expected keyword "code".
@@ -5,4 +5,4 @@ object "A" {
}
}
// ----
// ParserError 2314: (32-39): Expected 'StringLiteral' but got 'HexStringLiteral'
// ParserError 2314: (32-39='hex"11"'): Expected 'StringLiteral' but got 'HexStringLiteral'