Commit Graph
69 Commits
Author SHA1 Message Date
Alex Beregszaszi f2a51bcf38 Fix TestFileParser to support empty strings
Previously empty strings would be replaced with the token name, e.g. "string" in this case.
2020-11-04 17:49:23 +00:00
chriseth 3b8c038647 Empty storage option for isoltest. 2020-10-29 13:55:07 +01:00
chriseth d00ef95a72 Refactor isoltest function call kind. 2020-10-28 19:04:24 +01:00
chriseth fed6ea0125 Fix error message formatting in isoltest. 2020-10-13 17:20:19 +02:00
chriseth 91f7c6644f Only expect more failure data params if they are there. 2020-09-23 12:22:11 +02:00
a3d4 6336aa5aba Fix test expectation update 2020-08-31 12:50:18 +02:00
Sachin Grover b7adb2aa42 Add SPDX license identifier if not present already in source file
Fixes: #9220
2020-07-17 20:24:12 +05:30
Alex Beregszaszi 6a1ad7e59c Fix formatting hex strings in isoltest update 2020-07-13 19:06:16 +01:00
Djordje MijovicandKamil Śliwak c6e4943089 Adding fixes for signedness warnings in libsolidity
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
2020-06-10 10:41:55 +02:00
a3d4 be83c54d79 Throw TestParserError instead of Error in tests 2020-05-28 02:26:17 +02:00
Alexander Arlt 410986e00f [isoltest] Improve parameter formatting. 2020-05-19 19:13:39 -05:00
Erik Kundt d1b6a4a649 Fixes raw bytes warning in semantic test framework. 2020-02-26 21:37:52 +01:00
chriseth 40cae442d5 Fix re-printing value expectations. 2020-02-25 22:10:35 +01:00
Djordje Mijovic dd9009eba6 TestFileParser: Adding new keyword wei for expressing function value 2020-02-21 11:39:37 +01:00
chriseth 9aed40ab19 Check that functions exist in isoltest. 2020-02-13 13:22:53 +01:00
Mathias Baumann 00e4d13975 TestFramework: Merge Options.h into Common.h 2020-01-29 12:27:05 +01:00
Erik Kundt ae67cbde7d Fixes missing alignment output in isoltest. 2020-01-15 18:18:16 +01:00
Christian Parpart 345f9928ab Library libdevcore renamed to libsolutil. 2020-01-07 15:51:50 +01:00
Christian Parpart ed45b000d1 Adapt tests directory to C++ namespace changes. 2020-01-07 15:51:50 +01:00
Daniel Kirchner c7e3318dba Add support for external libraries to extracted semantics tests. 2019-11-12 15:19:04 +01:00
Christian Parpart df729b3084 Make use of C++17 std::optional<> instead of boost::optional<>. 2019-10-28 11:39:30 +01:00
Gaith Hallak 8a8f553e4d Remove trailing zeros from the output of BytesUtils::formatBytes 2019-10-16 14:42:12 +03:00
Gaith Hallak 02ae43aad4 Fix the documentation for TestFunctionCall::format 2019-10-16 14:42:12 +03:00
Erik Kundt e92b921123 [isoltest] Adds support for fallback and ether functions. 2019-09-13 10:55:46 +02:00
Erik Kundt 4162c3d7af [isoltest] Adds fallback formatting. 2019-09-11 15:45:53 +02:00
Erik Kundt 5e12e0cf27 [isoltest] Fixes auto-update for revert. 2019-09-09 22:46:43 +02:00
Erik Kundt 755dae5d66 [isoltest] Supports empty revert message. 2019-08-26 11:06:30 +02:00
Erik Kundt 6c73bc5bac [isoltest] Refactors parameter formatting. 2019-08-14 21:28:43 +02:00
Erik Kundt 30483acc42 [isoltest] Support FAILURE with reason. 2019-08-14 21:28:43 +02:00
chriseth d44f680a51 Merge pull request #7091 from ethereum/isoltest-value-format-fix
[isoltest] Fix (aligned) hex parsing and formatting
2019-08-07 17:55:37 +02:00
Erik Kundt 5ca991ac81 [isoltest] Allows odd-sized hex literals. 2019-08-07 17:19:27 +02:00
Erik Kundt fe15db6537 [isoltest] Fixes exception handling while parsing literals. 2019-08-07 12:22:52 +02:00
Erik Kundt e206ad6c24 [isoltest] Fixes hex (plus alignment) formatting. 2019-08-07 12:15:10 +02:00
Mathias Baumann e4ad0e8e6d Fix gcc9 errors 2019-08-06 12:12:09 +02:00
Erik Kundt f914415fb2 [isoltest] Updates type retrieval from ABI and its formatting. 2019-08-05 16:15:07 +02:00
Erik Kundt 38285b33d7 [isoltest] Prints bytes result if expectations mismatch. 2019-08-05 15:11:43 +02:00
Erik Kundt 07051f41d2 [isoltest] Reworks (default) ABI Type construction. 2019-08-05 15:00:04 +02:00
Erik Kundt d9b98bf7af [isoltest] Cleans up BytesUtils. 2019-08-05 15:00:04 +02:00
Erik Kundt a7a8ba73f9 [isoltest] Moves error types to dedicated file. 2019-08-05 15:00:04 +02:00
chriseth 7421d85346 Merge pull request #7094 from ethereum/isoltest-arrow-optional
[isoltest] Introduce shorthand declaration: make `->` optional.
2019-08-01 15:42:42 +02:00
Erik Kundt 41fb6f4ff8 isoltest: Removes additional whitespaces from output. 2019-07-22 13:43:20 +02:00
Erik Kundt 8c51a089d7 isoltest: Makes -> declaration optional. 2019-07-22 13:25:11 +02:00
Christian Parpart 58d8243921 isoltest: Fixes parsing and printing strings with *basic* escape sequences in it.
We explicitly did not implement a fully conformant ANSI escape sequence
parser but only what is needed for now.
2019-07-22 11:32:17 +02:00
Erik Kundt 2a1473fd30 Adds line numbers to parser errors in isoltest. 2019-07-15 14:16:07 +02:00
Erik Kundt d06be2c53f Restructures alignment and bytes utils in isoltest. 2019-07-04 19:15:43 +02:00
Erik Kundt de34f7712d Separates types and conversion functions in soltest. 2019-07-04 14:11:07 +02:00
Christian Parpart 63ae9f1415 [isoltest] TestFileParser: Fixes access of iterator at and beyond iterator ends. 2019-05-20 16:29:03 +02:00
Erik Kundt 94597ad9ae Adds support for constructor arguments in isoltest. 2019-05-15 12:01:14 +02:00
Erik Kundt 9956319e8b Adds support for string literals to soltest. 2019-05-07 11:36:38 +02:00
Erik Kundt 8103d22acf Takes type formats in isoltest from contract ABI. 2019-04-30 16:01:04 +02:00