mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added error codes to SyntaxTest expectations (updated tests)
This commit is contained in:
@@ -16,5 +16,5 @@ contract Error1 {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError: (95-96): Expected primary expression.
|
||||
// Warning: (95-96): Recovered in Statement at ';'.
|
||||
// ParserError 6933: (95-96): Expected primary expression.
|
||||
// Warning 3347: (95-96): Recovered in Statement at ';'.
|
||||
|
||||
@@ -3,5 +3,5 @@ contract Errort6 {
|
||||
}
|
||||
|
||||
// ----
|
||||
// ParserError: (36-37): Expected type name
|
||||
// Warning: (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: (417-425): Expected ')' but got identifier
|
||||
// ParserError 6635: (417-425): Expected ')' but got identifier
|
||||
|
||||
@@ -17,7 +17,7 @@ contract SendCoin {
|
||||
}
|
||||
|
||||
// ----
|
||||
// ParserError: (212-220): Expected ')' but got identifier
|
||||
// ParserError: (220-221): Expected ';' but got ')'
|
||||
// ParserError: (220-221): Function, variable, struct or modifier declaration expected.
|
||||
// Warning: (235-236): Recovered in ContractDefinition at '}'.
|
||||
// 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 '}'.
|
||||
|
||||
@@ -7,5 +7,5 @@ contract Error3 {
|
||||
|
||||
}
|
||||
// ----
|
||||
// ParserError: (95-96): Expected primary expression.
|
||||
// Warning: (95-96): Recovered in Statement at ';'.
|
||||
// ParserError 6933: (95-96): Expected primary expression.
|
||||
// Warning 3347: (95-96): Recovered in Statement at ';'.
|
||||
|
||||
@@ -21,9 +21,9 @@ contract Error4 {
|
||||
|
||||
}
|
||||
// ----
|
||||
// ParserError: (249-250): Expected ';' but got 'Number'
|
||||
// ParserError: (471-479): Expected ';' but got identifier
|
||||
// ParserError: (529-533): Expected ';' but got 'emit'
|
||||
// ParserError: (577-583): Expected ',' but got 'return'
|
||||
// ParserError: (577-583): Expected primary expression.
|
||||
// Warning: (588-589): Recovered in Statement at ';'.
|
||||
// ParserError 6635: (249-250): Expected ';' but got 'Number'
|
||||
// ParserError 6635: (471-479): Expected ';' but got identifier
|
||||
// ParserError 6635: (529-533): Expected ';' but got 'emit'
|
||||
// ParserError 6635: (577-583): Expected ',' but got 'return'
|
||||
// ParserError 6933: (577-583): Expected primary expression.
|
||||
// Warning 3796: (588-589): Recovered in Statement at ';'.
|
||||
|
||||
Reference in New Issue
Block a user