[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
@@ -16,5 +16,5 @@ contract Error1 {
}
}
// ----
// ParserError 6933: (88-89): Expected primary expression.
// Warning 3347: (88-89): Recovered in Statement at ';'.
// ParserError 6933: (88-89=';'): Expected primary expression.
// Warning 3347: (88-89=';'): Recovered in Statement at ';'.
@@ -3,5 +3,5 @@ contract Errort6 {
}
// ----
// ParserError 3546: (36-37): Expected type name
// Warning 3796: (59-60): Recovered in ContractDefinition at '}'.
// ParserError 3546: (36-37=';'): Expected type name
// Warning 3796: (59-60='}'): Recovered in ContractDefinition at '}'.
@@ -10,4 +10,4 @@ contract Error2 {
mapping (address => uint balances; // missing ) before "balances"
}
// ----
// ParserError 6635: (417-425): Expected ')' but got identifier
// ParserError 6635: (417-425='balances'): Expected ')' but got identifier
@@ -17,7 +17,7 @@ contract SendCoin {
}
// ----
// ParserError 6635: (212-220): Expected ')' but got identifier
// ParserError 6635: (220-221): Expected ';' but got ')'
// ParserError 9182: (220-221): Function, variable, struct or modifier declaration expected.
// Warning 3796: (235-236): Recovered in ContractDefinition at '}'.
// ParserError 6635: (212-220='balances'): Expected ')' but got identifier
// ParserError 6635: (220-221=')'): Expected ';' but got ')'
// ParserError 9182: (220-221=')'): Function, variable, struct or modifier declaration expected.
// Warning 3796: (235-236='}'): Recovered in ContractDefinition at '}'.
@@ -7,5 +7,5 @@ contract Error3 {
}
// ----
// ParserError 6933: (88-89): Expected primary expression.
// Warning 3347: (88-89): Recovered in Statement at ';'.
// ParserError 6933: (88-89=';'): Expected primary expression.
// Warning 3347: (88-89=';'): Recovered in Statement at ';'.
@@ -21,9 +21,9 @@ contract Error4 {
}
// ----
// ParserError 6635: (242-243): Expected ';' but got 'Number'
// ParserError 6635: (464-472): Expected ';' but got identifier
// ParserError 6635: (522-526): Expected ';' but got 'emit'
// ParserError 6635: (570-576): Expected ',' but got 'return'
// ParserError 6933: (570-576): Expected primary expression.
// Warning 3796: (581-582): Recovered in Statement at ';'.
// ParserError 6635: (242-243='2'): Expected ';' but got 'Number'
// ParserError 6635: (464-472='balances'): Expected ';' but got identifier
// ParserError 6635: (522-526='emit'): Expected ';' but got 'emit'
// ParserError 6635: (570-576='return'): Expected ',' but got 'return'
// ParserError 6933: (570-576='return'): Expected primary expression.
// Warning 3796: (581-582=';'): Recovered in Statement at ';'.
@@ -1,3 +1,3 @@
pragma solidity ^99.99.0;
// ----
// SyntaxError 3997: (0-25): Source file requires different compiler version (current compiler is ....
// SyntaxError 3997: (0-25='pragma solidity ^99.99.0;'): Source file requires different compiler version (current compiler is ....
@@ -1,6 +1,6 @@
pragma solidity ^99.99.0;
this is surely invalid
// ----
// ParserError 6635: (31-33): Expected identifier but got 'is'
// ParserError 6635: (34-40): Expected ';' but got identifier
// ParserError 6635: (31-33='is'): Expected identifier but got 'is'
// ParserError 6635: (34-40='surely'): Expected ';' but got identifier
// ParserError 6635: (49-49): Expected ';' but got end of source
@@ -3,5 +3,5 @@ contract C {
uint ;
}
// ----
// ParserError 6635: (48-49): Expected identifier but got ';'
// ParserError 6635: (50-51): Expected ';' but got '}'
// ParserError 6635: (48-49=';'): Expected identifier but got ';'
// ParserError 6635: (50-51='}'): Expected ';' but got '}'
@@ -3,5 +3,5 @@ contract C {
function f() {}
}
// ----
// SyntaxError 3997: (0-25): Source file requires different compiler version (current compiler is ....
// SyntaxError 4937: (43-58): No visibility specified. Did you intend to add "public"?
// SyntaxError 3997: (0-25='pragma solidity ^99.99.0;'): Source file requires different compiler version (current compiler is ....
// SyntaxError 4937: (43-58='function f() {}'): No visibility specified. Did you intend to add "public"?