chriseth
31fa51b1f8
Fix LLL tests.
2019-03-25 10:53:49 +01:00
chriseth
d381e26fc8
Rename "enabled" optimizer setting stage to "standard".
2019-03-21 11:04:40 +01:00
Alex Beregszaszi
7ec3eaa40d
Fix LLL tests using the opimiser
2019-03-20 19:21:24 +00:00
Alex Beregszaszi
758537b274
Add test for returning string literal in LLL
2019-02-25 23:59:52 +00:00
chriseth
bc6ddbdd09
Remove w
parameter for toHex.
2018-12-05 22:51:49 +01:00
Alex Beregszaszi
7c051f1e32
LLL: implement WITH keyword
2018-11-21 15:50:45 +00:00
Alex Beregszaszi
00cb5dbd43
Move LLL tests into a single directory
2018-11-13 23:51:17 +00:00
Alex Beregszaszi
90e4d24407
LLL: ensure assembly tests have the correct arguments
2018-11-13 13:47:29 +01:00
Alex Beregszaszi
a4d2e17a04
LLL: add test which has a sub assembly without a forced STOP
2018-11-13 13:47:29 +01:00
Alex Beregszaszi
d2e65a3ac4
LLL bytecode is padded by STOP in tests
2018-11-13 13:47:29 +01:00
Alex Beregszaszi
280255e64d
LLL: do not wrap opcode tests into sequence
2018-11-13 13:47:29 +01:00
Alex Beregszaszi
f2fa513320
Add LLL tests for EXTCODEHASH
2018-09-26 16:11:02 +01:00
liangdzou
839b01f77e
fix format issue for test files
2018-09-24 21:12:24 +08:00
Matías Aereal Aeón
e902ce1aa0
Removing std:: from std::to_string and include for boost/lexical_cast
2018-08-08 11:26:30 -03:00
Alex Beregszaszi
7c509137cf
Replace dev::eth namespace with dev::lll in LLL
2018-07-28 12:00:36 +01:00
Daniel Kirchner
334c023c72
Determine transaction status in RPC sessions.
2018-07-02 12:56:33 +02:00
Daniel Kirchner
d63d41b3b5
test: Rename test/TestHelper.* to test/Options.* and add Options::validate().
2018-03-14 12:04:04 +01:00
chriseth
6ec4517929
Use EVM version in gas meter and optimizer.
2018-03-05 11:36:33 +01:00
Jared Wasinger
9acc2ea711
Add test for each assembly opcode/instruction in LLL
2017-10-18 11:56:52 +01:00
Alex Beregszaszi
15517b571d
lll: disallow useless PUSHn in assembly
2017-10-13 02:04:36 +01:00
Alex Beregszaszi
d010d6300c
LLL: Add compiler tests
2017-10-02 12:44:34 +01:00
benjaminion
cafc0885c4
LLL: Tests for the proposed switch expression.
2017-10-02 12:01:15 +01:00
benjaminion
d84e9e7b6a
LLL: Test cases for nested IF expressions.
2017-07-21 10:23:03 +01:00
benjaminion
3bc935d932
LLL: rewrite alloc to avoid issues with edge cases.
2017-07-11 21:22:38 +01:00
benjaminion
e3c58eada6
Test cases for for and while loops.
2017-07-08 19:55:41 +01:00
benjaminion
468d716800
LLL: Full set of test cases for the built-in compiler macros.
2017-06-28 16:07:45 +01:00
Alex Beregszaszi
dbbdcc66e6
LLL: fix redefinitions on some compilers
2017-06-24 12:59:30 +01:00
Alex Beregszaszi
af57c083f2
LLL: fix the set keyword (create symbol if not present)
2017-06-23 02:52:44 +01:00
benjaminion
0175008ffa
LLL: Fix msg macro with six arguments.
...
The previous macro used the set built-in in a way incompatible with the current
implementation of set. This commit updates the macro to be more transparent in how it's
working and avoids the use of the set and alloc built-ins.
2017-06-22 13:46:52 +01:00
chriseth
de7a488f82
Merge pull request #2415 from benjaminion/lll-fix-create-macro
...
LLL: Fix for edge case in the create macros.
2017-06-22 12:33:45 +02:00
chriseth
1c54ce2a2c
Merge pull request #2399 from ethereum/lll-if
...
LLL: Replace obsolete assembly code
2017-06-22 12:22:28 +02:00
benjaminion
9954c5c0fa
LLL: Testcases for the two create built-in macros.
2017-06-22 09:45:23 +01:00
benjaminion
35bf91407e
LLL: Test case for ecrecover built-in macro.
2017-06-21 23:35:27 +01:00
Alex Beregszaszi
3515ee98ff
Add tests for when/unless/if in LLL
2017-06-21 21:23:20 +01:00
chriseth
7af9d10006
Fix lll test.
2017-06-15 10:07:17 +02:00
Alex Beregszaszi
600e3ad240
Support shl/shr in LLL
2017-06-14 14:08:28 +01:00
benjaminion
3299c479b6
LLL: fix handling of "sha3" expression
...
When PR #2317 changed the EVM opcode from SHA3 to KECCAK256 it broke the `(sha3 loc len)` expression in LLL. This PR fixes things while allowing existing code using the sha3 expression (such as the ENS registrar) to continue to compile. I.e. both `(keccak256 loc len)` and `(sha3 loc len)` may be used, and the existing related sha3 macros continue to work.
Three end-to-end test cases have been added for kekkac256 and sha3.
2017-06-13 22:20:14 +01:00
Yoichi Hirai
c4f0608b68
More informative test
2017-06-13 12:28:03 +02:00
Yoichi Hirai
0909ffc26e
Fix the expectation about the parse
2017-06-13 12:21:28 +02:00
Yoichi Hirai
a03913427f
Add an end-to-end test about LLL macro with zero arguments
2017-06-12 15:16:08 +02:00
Yoichi Hirai
b86b084bc6
Add a test that fails about an LLL macro with no arguments
2017-06-12 15:16:03 +02:00
Alex Beregszaszi
0cb95ac35e
LLL: add test for (panic) in a sequence
2017-01-12 14:52:01 +00:00
Daniel Ellison
0f304d2d89
Removed 'panic' from 'constructor_arguments_external' and added specific
...
test for fallback and fallthrough. Added one test for 'lit'. Added tests
for arithmetic/binary/unary operations. Added the start of tests for
assembler instructions within LLL source.
2016-12-06 18:21:26 -05:00
Daniel Ellison
e23ef9db02
Added tests for LLL constructors. Fixed a few tab issues.
2016-12-06 11:16:56 -05:00
Daniel Ellison
20a098e205
Removed enclosed_panic test until assembler bug is fixed.
2016-12-06 11:16:56 -05:00
Daniel Ellison
1152d2d2d4
Simplified exp_operator_on_range test and changed to tedting a range.
2016-12-06 11:16:56 -05:00
Daniel Ellison
a91b712ab8
Added tests for exponent operator.
2016-12-06 11:16:56 -05:00
Daniel Ellison
1b6861e6c9
Added 'panic' tests.
2016-12-06 11:16:56 -05:00
Alex Beregszaszi
4cecedcb49
LLL: update tests with the strict parser
2016-11-30 16:17:58 +00:00
Alex Beregszaszi
0f1d0304ee
LLLExecutionFramework doesn't support contractName/libraryAddresses
2016-11-29 21:54:28 +00:00