diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-07 00:37:01 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-10 20:08:22 +0800 |
commit | f03695731b9b36cd4014620b7b63556a69b4e952 (patch) | |
tree | 7e9ef254705fc96cf53d625ca0aad9f43cddc87d /test/libsolidity/SyntaxTest.h | |
parent | 2bc4ec31e2526abac57ac2864fa5c4bc4a7cd3a1 (diff) | |
download | dexon-solidity-f03695731b9b36cd4014620b7b63556a69b4e952.tar dexon-solidity-f03695731b9b36cd4014620b7b63556a69b4e952.tar.gz dexon-solidity-f03695731b9b36cd4014620b7b63556a69b4e952.tar.bz2 dexon-solidity-f03695731b9b36cd4014620b7b63556a69b4e952.tar.lz dexon-solidity-f03695731b9b36cd4014620b7b63556a69b4e952.tar.xz dexon-solidity-f03695731b9b36cd4014620b7b63556a69b4e952.tar.zst dexon-solidity-f03695731b9b36cd4014620b7b63556a69b4e952.zip |
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; } }; |