diff options
| author | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-10 22:16:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-10 22:16:04 +0800 |
| commit | 41d81a7432caac39fa420ab6b761a35221710171 (patch) | |
| tree | 7e9ef254705fc96cf53d625ca0aad9f43cddc87d /test/libsolidity/SyntaxTest.h | |
| parent | 2bc4ec31e2526abac57ac2864fa5c4bc4a7cd3a1 (diff) | |
| parent | f03695731b9b36cd4014620b7b63556a69b4e952 (diff) | |
| download | dexon-solidity-41d81a7432caac39fa420ab6b761a35221710171.tar dexon-solidity-41d81a7432caac39fa420ab6b761a35221710171.tar.gz dexon-solidity-41d81a7432caac39fa420ab6b761a35221710171.tar.bz2 dexon-solidity-41d81a7432caac39fa420ab6b761a35221710171.tar.lz dexon-solidity-41d81a7432caac39fa420ab6b761a35221710171.tar.xz dexon-solidity-41d81a7432caac39fa420ab6b761a35221710171.tar.zst dexon-solidity-41d81a7432caac39fa420ab6b761a35221710171.zip | |
Merge pull request #3842 from ethereum/syntaxTestsSourceLocations
Add source locations to syntax test expectations.
Diffstat (limited to 'test/libsolidity/SyntaxTest.h')
| -rw-r--r-- | test/libsolidity/SyntaxTest.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/libsolidity/SyntaxTest.h b/test/libsolidity/SyntaxTest.h index dddd86ef..6159e789 100644 --- a/test/libsolidity/SyntaxTest.h +++ b/test/libsolidity/SyntaxTest.h @@ -40,9 +40,14 @@ struct SyntaxTestError { std::string type; std::string message; + int locationStart; + int locationEnd; bool operator==(SyntaxTestError const& _rhs) const { - return type == _rhs.type && message == _rhs.message; + return type == _rhs.type && + message == _rhs.message && + locationStart == _rhs.locationStart && + locationEnd == _rhs.locationEnd; } }; |
