aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Test case for overflow in storage.chriseth2016-10-311-0/+20
|
* test: add more tests about state variable access under base contract namesYoichi Hirai2016-10-251-2/+35
|
* test: add tests from #988Yoichi Hirai2016-10-241-0/+66
|
* test: add a test case for accessing a state variable under the contract's nameYoichi Hirai2016-10-241-0/+15
| | | | The test comes from the description of #988
* test: add a test about using an inherited enum definition as an expression,Yoichi Hirai2016-10-241-0/+42
| | | | with an explicit mention of the base contract. The test is about #1131.
* test: add tests for #1131Yoichi Hirai2016-10-211-0/+51
| | | | The tests are about enum inheritance.
* Add tests for inline assembly in modifiersAlex Beregszaszi2016-10-211-0/+22
|
* Add tests for constant shiftsAlex Beregszaszi2016-10-201-0/+44
|
* Add a test for #1242Yoichi Hirai2016-10-181-0/+9
| | | | This is about `super` as an expression.
* Fix build error.chriseth2016-10-111-4/+6
|
* Merge pull request #1168 from ethereum/rename-dev-sha3chriseth2016-10-111-23/+23
|\ | | | | Rename dev::sha3 to dev::keccak256
| * Rename dev::sha3 to dev::keccak256Alex Beregszaszi2016-10-061-23/+23
| |
* | Add alias keccak256() for sha3()Alex Beregszaszi2016-10-061-0/+18
|/
* Merge pull request #1104 from ethereum/fixmemcostschriseth2016-09-171-0/+27
|\ | | | | Fix memory resize costs during call
| * Access output memory area so that we do not pay for resize during call.chriseth2016-09-171-1/+1
| |
| * Test case.chriseth2016-09-171-0/+27
| |
* | Allow value transfer to library functions.chriseth2016-09-171-0/+17
|/
* Fix problem with release version string.chriseth2016-09-081-1/+1
|
* Provide gas stipend manually for send(0).chriseth2016-09-061-0/+20
|
* Change placeholder style.chriseth2016-09-061-1/+1
|
* Change function type to include and propagate payable and constant modifier.chriseth2016-09-061-32/+27
|
* Merged in changes from chriseth/payableAlex Beregszaszi2016-09-061-12/+37
|
* Mark every other test payable where neccesary in EndToEndTestAlex Beregszaszi2016-09-061-26/+29
|
* Include EndToEnd test for payable keywordAlex Beregszaszi2016-09-061-0/+57
|
* Require ";" after "_"chriseth2016-09-051-17/+17
|
* Merge pull request #960 from Denton-L/change-else-stylechriseth2016-09-011-1/+2
|\ | | | | Change else style
| * Make tests more consistent in styleDenton Liu2016-08-271-1/+2
| |
* | Test cases.chriseth2016-08-301-0/+13
| |
* | Make fallback function throw by default.chriseth2016-08-301-0/+2
|/
* Merge pull request #897 from Denton-L/remove-standardchriseth2016-08-271-15/+0
|\ | | | | BREAKING: Remove standard contracts
| * Remove standard contractsDenton Liu2016-08-191-15/+0
| |
* | Fix tests.chriseth2016-08-261-9/+9
| |
* | Merge pull request #928 from winsvega/solremovechriseth2016-08-251-5/+16
|\ \ | |/ |/| remove sha256 and rmd160 hash
| * remove sha256 and rmd160 hashDimitry2016-08-241-5/+16
| |
* | Merge pull request #839 from chriseth/checkcodechriseth2016-08-171-0/+26
|\ \ | | | | | | BREAKING: Make function calls throw if target does not have code.
| * | Make function calls throw if target does not have code.chriseth2016-08-171-0/+26
| |/ | | | | | | | | Low-level calls still just execute and will actually report "success". This allows `x.call.value(y)()` for x being a non-contract account.
* | Merge pull request #888 from chriseth/throwOnDivZerochriseth2016-08-171-0/+21
|\ \ | | | | | | Throw on division by zero.
| * | Throw on division by zero.chriseth2016-08-171-0/+21
| | |
* | | BREAKING: return only exits current function/modifierchriseth2016-08-171-2/+134
| |/ |/|
* | Merge pull request #836 from chriseth/unusedunderscorechriseth2016-08-171-2/+2
|\ \ | |/ |/| BREAKING: Require modifiers to contain "_".
| * Fix tests.chriseth2016-08-171-2/+2
| |
* | Merge pull request #838 from chriseth/ecrecoverchriseth2016-08-171-0/+16
|\ \ | | | | | | Make ecrecover return zero for malformed input.
| * | Actually better to return zero on error.chriseth2016-08-161-5/+3
| | |
| * | Make ecrecover throw for malformed input.chriseth2016-08-161-0/+18
| |/
* / Throw if contract creation fails.chriseth2016-08-161-0/+27
|/
* Make the Solidity repository standalone.Bob Summerwill2016-08-011-3/+5
| | | | | | | | | | | | | | | | | | | | This commit is the culmination of several months of work to decouple Solidity from the webthree-umbrella so that it can be developed in parallel with cpp-ethereum (the Ethereum C++ runtime) and so that even for the Solidity unit-tests there is no hard-dependency onto the C++ runtime. The Tests-over-IPC refactoring was a major step in the same process which was already committed. This commit contains the following changes: - A subset of the CMake functionality in webthree-helpers was extracted and tailored for Solidity into ./cmake. Further cleanup is certainly possible. - A subset of the libdevcore functionality in libweb3core was extracted and tailored for Solidity into ./libdevcore. Further cleanup is certainly possible - The gas price constants in EVMSchedule were orphaned into libevmasm. - Some other refactorings and cleanups were made to sever unnecessary EVM dependencies in the Solidity unit-tests. - TravisCI and Appveyor support was added, covering builds and running of the unit-tests (Linux and macOS only for now) - A bug-fix was made to get the Tests-over-IPC running on macOS. - There are still reliability issues in the unit-tests, which need immediate attention. The Travis build has been flipped to run the unit-tests 5 times, to try to flush these out. - The Emscripten automation which was previously in webthree-umbrella was merged into the TravisCI automation here. - The development ZIP deployment step has been commented out, but we will want to read that ONLY for release branch. Further iteration on these changes will definitely be needed, but I feel these have got to sufficient maturity than holding them back further isn't winning us anything. It is go time :-)
* Bugfix: Allocate empty array.chriseth2016-07-281-0/+14
|
* Fix some more tests.chriseth2016-06-291-9/+8
|
* replace BalanceAtDimitry2016-06-291-3/+3
| | | | | add addressHasCode remove m_state and sealengine
* Balance and storage.chriseth2016-06-291-61/+61
|
* logschriseth2016-06-291-6/+6
|
* Refactor testing via IPC.chriseth2016-06-291-1/+1
|
* Add a test for a struct accessor.chriseth2016-06-051-0/+26
|
* Inaccessible dynamic typeschriseth2016-06-021-0/+19
|
* Tests for invalid cleanup and missing bool conversion code.chriseth2016-05-201-0/+18
|
* Merge pull request #545 from chriseth/accessFunLabelschriseth2016-05-181-0/+19
|\ | | | | Allow access to functions in inline assembly.
| * Allow access to functions in inline assembly.chriseth2016-05-121-0/+19
| |
* | Merge pull request #546 from chriseth/fixiszerochriseth2016-05-141-0/+20
|\ \ | |/ |/| Correctly use not/bnot/iszero.
| * Correctly use not/bnot/iszero.chriseth2016-05-091-0/+20
| | | | | | | | | | A long time ago, some opcodes were renamed. Now we should only have not (bitwise negation) and iszero (logical negation).
* | Remove unused tests and add asserts for not implemented parts in code ↵chriseth2016-05-111-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | generation. quick fix on christian's rational change so that ubuntu will stop yelling be more specific with rational declaration for Windows sake rational in namespace correction for windows
* | added bytes conversion tests, resolved that, converted to binary scaling, ↵VoR02202016-05-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | refactored the find algo to prevent large numbers and take into account integer bytes think we're good on solidity type name resolution now removed couts updates to documentation and more removed couts along with literal value implementation forgot semicolons
* | initial work for fixed types...potentially needing a constant literal type ↵RJ Catalano2016-05-101-0/+23
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for this notation Rational implemented...trying to figure out exponential fix for token bug, also quick fix for the wei and seconds fixed problem with var...probably a conversion problem for fixed in size capabilities adding fixed type tests Removing bitshift and regrouping fixed type tests together size capabilities functioning properly for fixed types got exponents up and working with their inverse, changed a few of the tests....something is working that likely shouldn't be slight changes to how to flip the rational negative around...still trying to figure it out tests added updated tests odd differences in trying soltest from solc binary, let me know if you can replicate test not working for odd reason fixed test problem with fixed literals...still need a way to log this error broken up the tests, added some, changed some things in types and began compiler work moar tests and prepping for rebuilding much of the types.cpp file further fixing initial work for fixed types...potentially needing a constant literal type for this
* Some more tests.chriseth2016-05-041-0/+25
|
* Allow calling internal functions of libraries.chriseth2016-05-041-0/+77
| | | | | | | | | | | | Internal functions of libraries can be called as if the library were a base contract of the calling contract. As the calling convention for internal functions is to not create a new call context, the code of these functions will be pulled into the context of the caller, duplicating their code. This might pull in code of further internal or even private functions. The use case for such functions is to allow libraries which can operate on memory types such that these types can also be modified in place.
* Test for bug in static array constructor argument decoder.chriseth2016-04-161-0/+20
|
* Test for bug when deleting dynamic array of structs.chriseth2016-04-151-0/+22
|
* Test to check we correctly clean higher order bits for index access.chriseth2016-03-311-0/+16
|
* Code generation (missing external access and source locations).chriseth2016-03-301-0/+89
|
* Set version to 0.3.0chriseth2016-03-121-1/+1
|
* BREAKING: Implement delegatecall and make default for library calls.chriseth2016-03-121-0/+56
|
* changes to redefine the token list, the scanner, and the parser and how they ↵RJ Catalano2016-02-191-2/+2
| | | | | | | | pass around variable types of different sizes not ready for change to FixedPoint just yet made this more const correct and added a switch statement for easier reading
* Index access for bytesXX.chriseth2016-02-101-0/+36
|
* add more test cases for cond-exprLu Guanqun2016-01-231-0/+49
|
* cond-expr: use the mobile type instead of the original typeLu Guanqun2016-01-231-1/+34
|
* [cond-expr] change the end to end testLu Guanqun2016-01-231-4/+5
|
* [cond-expr] add a test for different typesLu Guanqun2016-01-231-0/+15
|
* [cond-expr] add a test to assign memory to storageLu Guanqun2016-01-231-0/+33
|
* [cond-expr] don't allow conditional as left value for the first stageLu Guanqun2016-01-231-16/+0
|
* [cond-expr] fixup according to code reviewLu Guanqun2016-01-231-2/+13
|
* comment out one un-supported test caseLu Guanqun2016-01-231-0/+2
|
* fixup end to end testLu Guanqun2016-01-231-1/+1
|
* [cond-expr] add end to end testLu Guanqun2016-01-231-0/+58
|
* check whether break/continue is in the loopLu Guanqun2016-01-151-12/+0
|
* clarification on dynamic arrays, switcheroo on typepointer, and a ↵RJ Catalano2016-01-121-0/+17
| | | | documentation test added
* one last test for long stringsRJ Catalano2016-01-111-0/+15
|
* Update SolidityEndToEndTest.cppRJ2016-01-111-7/+18
|
* Update SolidityEndToEndTest.cppRJ2016-01-101-0/+70
|
* add a test case for decayed tuple expression as left valueLu Guanqun2016-01-041-0/+15
|
* Add structs and enums to contract types.chriseth2015-12-181-0/+15
|
* Increment version to 0.2.0 (includes breaking changes).chriseth2015-12-011-1/+1
|
* Code generation for calling bound methods.chriseth2015-12-011-0/+120
|
* Merge pull request #256 from chriseth/selfdestructchriseth2015-11-301-0/+16
|\ | | | | Introduce selfdestruct alias for suicide.
| * Introduce selfdestruct alias for suicide.chriseth2015-11-291-0/+16
| |
* | Bugfix for constructor unpacking with fixed-size arrays.chriseth2015-11-291-0/+17
|/
* Code generation for creating arrays.chriseth2015-11-261-0/+44
|
* Allow "new expressions" also for general type names.chriseth2015-11-261-1/+1
| | | | | | | Breaking change: If you want to send value with a contract creation, you have to use parentheses now: `(new ContractName).value(2 ether)(arg1, arg2)`
* Test for allocation bug.chriseth2015-11-241-0/+31
|
* Merge pull request #227 from chriseth/addmodchriseth2015-11-191-0/+18
|\ | | | | Addmod and mulmod.
| * Addmod and mulmod.chriseth2015-11-191-0/+18
| |
* | Merge pull request #204 from ethereum/hot_gavGav Wood2015-11-191-1/+1
|\ \ | |/ |/| The Big Refactor
| * New vocab.Gav Wood2015-11-061-1/+1
| |
* | Merge pull request #218 from chriseth/fix_overwriteMemorychriseth2015-11-171-0/+15
|\ \ | | | | | | Fix memory overwrite problem for arrays.
| * | Fix memory overwrite problem for arrays.chriseth2015-11-171-0/+15
| |/
* / Fix dynamic indexed event arguments - applies sha3.chriseth2015-11-171-0/+35
|/
* Bugfix: Returning literal strings in tuples.chriseth2015-11-011-0/+20
|
* Store docstrings in AST annotations.chriseth2015-10-261-26/+0
|
* File reorganisation.chriseth2015-10-211-1/+1
|
* Fix errors when struct array type is used on its own.chriseth2015-10-161-0/+15
|
* Wildcards.chriseth2015-10-151-3/+6
|
* Destructuring assignments.chriseth2015-10-151-5/+42
|
* Tuple expressions.chriseth2015-10-151-0/+55
|
* Merge pull request #130 from LefterisJP/dynamic_array_pushchriseth2015-10-151-0/+40
|\ | | | | Dynamic array push
| * push() for byte arrays also properly implementedLefteris Karapetsas2015-10-151-9/+10
| |
| * Working implementation of arraypushLefteris Karapetsas2015-10-151-2/+21
| | | | | | | | | | ByteArrayPush() gets a test but is ignored for now, since there are still some issues with its implementation
| * Implement Dynamic array push and fix testLefteris Karapetsas2015-10-151-4/+7
| | | | | | | | | | Still a work in progress. There is a disturbance in the stack at the moment and that's why there are some cout statements left for debugging.
| * Add a dynamic array push() testLefteris Karapetsas2015-10-151-0/+17
| |
* | errors instead of exceptionsLianaHus2015-10-151-2/+2
|/ | | | | | | | | Conflicts: libsolidity/CompilerStack.cpp libsolidity/NameAndTypeResolver.cpp libsolidity/NameAndTypeResolver.h libsolidity/TypeChecker.cpp test/libsolidity/SolidityNameAndTypeResolution.cpp
* Tests for multi variable declaration.chriseth2015-10-091-0/+24
|
* Resolve binary dependencies properly.chriseth2015-10-071-8/+18
|
* Merge pull request #122 from chriseth/anonymousEventsWithFourIndexedParamschriseth2015-10-071-4/+6
|\ | | | | Allow four indexed arguments for anynomous events.
| * Allow four indexed arguments for anynomous events.chriseth2015-10-071-4/+6
| |
* | Reject ether sent to library.chriseth2015-10-071-0/+23
|/
* Merge pull request #117 from chriseth/internalTypesForLibrarychriseth2015-10-071-0/+67
|\ | | | | Internal types for library
| * Compiler version stamp.chriseth2015-10-061-0/+11
| |
| * Provide access to scoped structs.chriseth2015-10-061-0/+27
| |
| * Compute canonical names of types for function signatures.chriseth2015-10-061-26/+0
| |
| * Encode storage items correctly for library calls.chriseth2015-10-061-0/+26
| |
| * Test for internal types.chriseth2015-10-061-0/+29
| |
* | Test long constructor arguments.chriseth2015-10-051-0/+28
|/
* Store small byte arrays and strings in storage in one slot with theirchriseth2015-10-021-0/+110
| | | | length.
* Bugfix in calldata unpacker.chriseth2015-10-011-0/+19
| | | | | The offset was not specified correctly if memory activity preceded the unpacker.
* improved the testLianaHus2015-09-231-3/+13
|
* fixed-sized arrays as return typeLianaHus2015-09-231-0/+19
| | | | | Conflicts: test/libsolidity/SolidityEndToEndTest.cpp
* Merge pull request #85 from chriseth/warningschriseth2015-09-231-1/+1
|\ | | | | Support mulitple errors and warnings.
| * Refactoring: Check types outside of AST and recover from some errors.chriseth2015-09-221-1/+1
| |
* | fixed the testLianaHus2015-09-221-4/+1
| |
* | fixed using string as a type for struct memberLianaHus2015-09-171-6/+6
| |
* | testLianaHus2015-09-171-0/+45
|/ | | | | Conflicts: test/libsolidity/SolidityEndToEndTest.cpp
* throw statement implementationLianaHus2015-09-161-0/+18
|
* style fixLianaHus2015-09-151-1/+1
|
* fixed rebaseLianaHus2015-09-151-17/+0
|
* moved the testLianaHus2015-09-151-0/+3
| | | | | | Conflicts: test/libsolidity/SolidityEndToEndTest.cpp test/libsolidity/SolidityNameAndTypeResolution.cpp
* returned test for exceptions in constructorLianaHus2015-09-151-0/+17
|
* - changed implementationLianaHus2015-09-151-1/+1
| | | | - style fixes
* some fixes in testsLianaHus2015-09-151-48/+5
|
* added compile time check for out of bounds access for ordinary arraysLianaHus2015-09-151-26/+52
| | | | | | | todo: check for dynamicaly sized arrays Conflicts: test/libsolidity/SolidityEndToEndTest.cpp
* testLianaHus2015-09-151-0/+17
|
* Possibility to call library functions.chriseth2015-09-111-0/+32
|
* Merge pull request #51 from ethereum/revert-25-sol_strings_as_mapping_keyschriseth2015-09-091-7/+4
|\ | | | | Revert "added check for string as mapping key for local var."
| * Revert "added check for string as mapping key for local var."chriseth2015-09-081-7/+4
| |
* | Stylistic corrections.chriseth2015-09-091-1/+1
| |
* | Fix for constant strings.chriseth2015-09-081-0/+32
|/
* added check for string as mapping key for local var.LianaHus2015-08-241-4/+7
|
* added test to check string as mapping keyLianaHus2015-08-241-0/+16
|
* add tests for state variables accessors. normal and constantLianaHus2015-08-211-0/+21
| | | | fixed the issue with accessors for constant state variables
* Move Solidity tests.chriseth2015-08-201-0/+5168