aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
Commit message (Collapse)AuthorAgeFilesLines
...
* | added bytes conversion tests, resolved that, converted to binary scaling, ↵VoR02202016-05-102-26/+64
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | fixing modulus and Solidity Name and Type ResolutionVoR02202016-05-101-272/+0
| | | | | | | | | | | | minor fixes current attempts at binary fixup
* | currently what we haveVoR02202016-05-101-1/+1
| |
* | got exponents up and working with their inverse, changed a few of the ↵RJ Catalano2016-05-101-41/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 infinite loop still happening but it's somewhere in the fixedPoint methodd fractional bits needed algo improved! Eliminated 2 errors Corrected problems with the previous commit. No infinite loops. Actually appear to have corrected an error
* | fixed problem with var...probably a conversion problem for fixed in size ↵RJ Catalano2016-05-101-2/+70
| | | | | | | | | | | | | | | | capabilities adding fixed type tests Removing bitshift and regrouping fixed type tests together
* | fix for token bug, also quick fix for the wei and secondsRJ Catalano2016-05-101-1/+1
| |
* | Rational implemented...trying to figure out exponentialRJ Catalano2016-05-101-2/+30
| |
* | initial work for fixed types...potentially needing a constant literal type ↵RJ Catalano2016-05-103-31/+475
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Modify failing test: Accessor functions are not available anymore in libraries.chriseth2016-05-041-2/+1
|
* Some more tests.chriseth2016-05-042-0/+39
|
* 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.
* Merge pull request #507 from chriseth/sealEngineBob Summerwill2016-04-161-13/+2
|\ | | | | Explicitly init seal engine.
| * Explicitly init seal engine.chriseth2016-04-161-13/+2
| |
* | 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
|
* Merge pull request #491 from winsvega/sealenginesBob Summerwill2016-04-131-0/+14
|\ | | | | sealengines throught init function
| * sealengines throught init functionDimitry2016-04-111-0/+14
| |
* | Remove log.h from solidity.chriseth2016-04-125-5/+0
|/
* Merge pull request #475 from chriseth/byteasmchriseth2016-04-061-0/+5
|\ | | | | Allow "byte" in inline assembly.
| * Allow "byte" in inline assembly.chriseth2016-04-061-0/+5
| |
* | reduce unnecessary solidity:: namespaceDimitry2016-04-041-111/+111
| |
* | enable solidity testDimitry2016-04-042-130/+130
|/
* Merge pull request #470 from chriseth/redundancyBob Summerwill2016-04-011-2/+3
|\ | | | | Remove code duplication in source references formatter.
| * Remove code duplication in source references formatter.chriseth2016-04-011-2/+3
| |
* | Merge pull request #457 from VoR0220/tokenNameAndStringFixchriseth2016-04-011-0/+12
|\ \ | |/ |/| Fix for Token::name and token::toString
| * added solidity invalid fixed type testVoR02202016-03-311-0/+12
| |
* | 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-302-12/+118
|
* Parsing for inline assembly.chriseth2016-03-301-0/+138
|
* Fixed Windows warningsBob Summerwill2016-03-182-2/+2
|
* Set version to 0.3.0chriseth2016-03-121-1/+1
|
* added keyword type and some tests, changes in lexical castRJ Catalano2016-03-121-0/+13
|
* BREAKING: Implement delegatecall and make default for library calls.chriseth2016-03-123-1/+70
|
* Test for optimizer bug caused by not incrementing the sequence counter.chriseth2016-03-111-0/+14
|
* further optimization, splitting function into piecesRJ Catalano2016-02-191-0/+25
| | | | generating strings on the fly, changed name, and added two tests
* added two functions in Token to handle long identifiers, redid ↵RJ Catalano2016-02-191-101/+113
| | | | fromIdentifierOrKeyword, and made complementary changes in scanner and parser
* tests added and changes madeRJ Catalano2016-02-192-110/+140
| | | | | | fixed some silly problems in Token.cpp windows error fix
* changes to redefine the token list, the scanner, and the parser and how they ↵RJ Catalano2016-02-193-119/+120
| | | | | | | | 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
* Test for segfault when using wrong number of constructor arguments.chriseth2016-02-121-0/+15
|
* Index access for bytesXX.chriseth2016-02-102-0/+49
|
* add more test cases for cond-exprLu Guanqun2016-01-231-0/+49
|
* cond-expr: add more unit testsLu Guanqun2016-01-232-14/+150
|
* 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-232-18/+4
|
* [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 another parser expressionLu Guanqun2016-01-231-0/+1
|
* [cond-expr] add test cases for type resolutionLu Guanqun2016-01-231-0/+24
|
* [cond-expr] add end to end testLu Guanqun2016-01-231-0/+58
|
* [cond-expr] add parser test casesLu Guanqun2016-01-231-0/+80
|
* Merge pull request #356 from guanqun/break-not-in-loopchriseth2016-01-212-12/+46
|\ | | | | check whether break/continue is in the loop
| * add another test case for continue not in loopLu Guanqun2016-01-191-0/+15
| |
| * check whether break/continue is in the loopLu Guanqun2016-01-152-12/+31
| |
* | Merge pull request #358 from chriseth/fix_storagechriseth2016-01-181-0/+21
|\ \ | | | | | | Test for incorrect storage access.
| * | Test for incorrect storage access.chriseth2016-01-161-0/+21
| | |
* | | Merge pull request #347 from chriseth/libraryNameClasheschriseth2016-01-181-0/+16
|\ \ \ | | | | | | | | Detect library name clashes
| * | | Tests for library name clashes.chriseth2016-01-141-0/+16
| |/ /
* | | Update SolidityNameAndTypeResolution.cppLiana Husikyan2016-01-161-1/+0
| | |
* | | Update SolidityNameAndTypeResolution.cppLiana Husikyan2016-01-161-1/+0
| | |
* | | fixed assert on EI creation for structs containing only mapping or arraysLianaHus2016-01-161-0/+13
|/ /
* | Merge pull request #346 from chriseth/importAliaseschriseth2016-01-141-0/+25
|\ \ | |/ |/| Allow aliases during import.
| * Allow aliases during import.chriseth2016-01-111-0/+25
| |
* | clarification on dynamic arrays, switcheroo on typepointer, and a ↵RJ Catalano2016-01-122-2/+19
| | | | | | | | documentation test added
* | added documentation and one last test for struct creation inlineRJ Catalano2016-01-121-0/+16
| |
* | final changes to typechecker, the expression compiler, and a couple more ↵RJ Catalano2016-01-121-0/+25
| | | | | | | | tests for good measure
* | one last test for long stringsRJ Catalano2016-01-111-0/+15
| |
* | Update SolidityNameAndTypeResolution.cppRJ2016-01-111-1/+0
| |
* | Update SolidityEndToEndTest.cppRJ2016-01-111-7/+18
| |
* | Update SolidityEndToEndTest.cppRJ2016-01-101-0/+70
| |
* | Update with type resolution tests for arraysRJ2016-01-101-8/+76
|/
* Merge pull request #338 from guanqun/add_parenchriseth2016-01-052-0/+16
|\ | | | | support syntax "(x) = 3"
| * add a test case for decayed tuple expression as left valueLu Guanqun2016-01-042-0/+16
| |
* | Merge pull request #317 from chriseth/pathsEverywherechriseth2016-01-041-1/+1
|\ \ | |/ |/| Use paths instead of simple identifiers wherever possible.
| * Use paths instead of simple identifiers wherever possible.chriseth2015-12-221-1/+1
| |
* | Merge pull request #308 from chriseth/fixoverloadbugchriseth2015-12-211-0/+11
|\ \ | | | | | | Fix bug preventing overloads of different array types.
| * | Fix bug preventing overloads of different array types.chriseth2015-12-181-0/+11
| |/
* / Add structs and enums to contract types.chriseth2015-12-182-0/+30
|/
* Simple aliasing during import.chriseth2015-12-181-0/+8
|
* Parse complex import directives.chriseth2015-12-181-0/+21
|
* updated tests and much simpler algorithm for parsing errorsRJ Catalano2015-12-171-21/+8
|
* added one more test and realized that there was one last change before the ↵RJ Catalano2015-12-171-5/+32
| | | | parser is perfect
* forgot about this one...again making this purely about ↵RJ Catalano2015-12-171-2/+2
| | | | parsing...typechecking will come another day
* making this purely about parsing...type checking will go in a different PRRJ Catalano2015-12-171-2/+2
|
* changed a couple of small nuances, made an attempt at fixing the parsing in ↵RJ Catalano2015-12-171-6/+20
| | | | the inline arrays case (fails), and added test for inline arrays per Chriseth request
* new testsRJ Catalano2015-12-161-0/+26
|
* updated attempt, a couple of more things to sort through and changeRJ Catalano2015-12-161-0/+14
|
* Relative paths in import directives.chriseth2015-12-101-0/+17
|
* Source units are independent scopes.chriseth2015-12-102-9/+99
|
* 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 #251 from chriseth/bind2chriseth2015-11-302-0/+175
|\ | | | | Bind library functions to types.
| * Also check the object type for bound functions.chriseth2015-11-291-0/+45
| |
| * Add bound functions to types.chriseth2015-11-291-0/+93
| |
| * Added the `using x for y` directive.chriseth2015-11-272-0/+37
| |
* | 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
|/
* Fix smart pointer lifetime issue in tests.chriseth2015-11-261-16/+15
|
* Do not store elements of a contract by AST node type.chriseth2015-11-261-8/+8
|
* Code generation for creating arrays.chriseth2015-11-261-0/+44
|
* Type checking for creating new arrays.chriseth2015-11-261-1/+37
|
* Allow "new expressions" also for general type names.chriseth2015-11-262-1/+19
| | | | | | | 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 #236 from ethereum/hot_gavGav Wood2015-11-231-1/+3
|\ | | | | Fix up for new API from EIP-1.1.
| * Fix up for new API from EIP-1.1.Gav Wood2015-11-211-1/+3
| |
* | Merge remote-tracking branch 'origin/hot_gav' into developGav Wood2015-11-201-1/+5
|\|
| * Fix solidity tests.Gav Wood2015-11-201-1/+5
| |
* | 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-192-2/+3
|\ \ \ | |/ / |/| / | |/ The Big Refactor
| * Fix tests for new API.Gav Wood2015-11-171-1/+1
| |
| * Fixups for new API.Gav Wood2015-11-061-1/+2
| |
| * 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
| | |
* | | Merge pull request #216 from chriseth/dynamic_indexed_event_argschriseth2015-11-171-0/+35
|\ \ \ | | | | | | | | Fix dynamic indexed event arguments - applies sha3.
| * | | Fix dynamic indexed event arguments - applies sha3.chriseth2015-11-171-0/+35
| |/ /
* | | Merge pull request #214 from chriseth/fix_optimizerTestchriseth2015-11-171-1/+5
|\ \ \ | | | | | | | | Test fix: Do not increment iterator past end.
| * | | Test fix: Do not increment iterator past end.chriseth2015-11-161-1/+5
| |/ /
* / / Fix segfault during test.chriseth2015-11-161-1/+1
|/ /
* | Work around bug in MSVC/Boost for u256->unsigned conversion.chriseth2015-11-161-0/+10
| |
* | style fixesLianaHus2015-11-071-2/+2
| |
* | fixed test frameworkLianaHus2015-11-071-17/+20
|/
* Bugfix: Returning literal strings in tuples.chriseth2015-11-011-0/+20
|
* Store docstrings in AST annotations.chriseth2015-10-263-48/+31
|
* File reorganisation.chriseth2015-10-2112-35/+35
|
* Correctly parse ambiguities like `A.B[10] x` and `x.y[10] = 3`.chriseth2015-10-162-0/+39
|
* Fix errors when struct array type is used on its own.chriseth2015-10-161-0/+15
|
* Some fixes taking other pull requests into account.chriseth2015-10-162-9/+5
|
* Wildcards.chriseth2015-10-151-3/+6
|
* Destructuring assignments.chriseth2015-10-151-5/+42
|
* Tuple expressions.chriseth2015-10-153-1/+98
|
* 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
| |
* | renaming in test frameworkLianaHus2015-10-151-195/+195
| |
* | some more style fixesLianaHus2015-10-152-6/+6
| |
* | mainly style fixes/renamingLianaHus2015-10-152-82/+92
| |
* | fixLianaHus2015-10-151-2/+0
| |
* | fixed new testsLianaHus2015-10-152-23/+15
| |
* | errors instead of exceptionsLianaHus2015-10-157-250/+313
| | | | | | | | | | | | | | | | | | Conflicts: libsolidity/CompilerStack.cpp libsolidity/NameAndTypeResolver.cpp libsolidity/NameAndTypeResolver.h libsolidity/TypeChecker.cpp test/libsolidity/SolidityNameAndTypeResolution.cpp
* | added Error class for all kind of errorsLianaHus2015-10-152-5/+10
|/ | | | | Conflicts: libsolidity/Exceptions.h
* Some further test fixes.chriseth2015-10-131-1/+2
|
* Some more tests and typos fixed.chriseth2015-10-132-0/+27
|
* Multi-variable declarations.chriseth2015-10-132-12/+59
|
* Introduced tuple type and added multi variable declarations to typechriseth2015-10-102-2/+14
| | | | checker.
* Tests for multi variable declaration.chriseth2015-10-093-0/+50
|
* Check invalid integer constants for functions accepting arbitrary arguments.chriseth2015-10-081-2/+13
|
* Resolve binary dependencies properly.chriseth2015-10-072-8/+38
|
* Merge pull request #122 from chriseth/anonymousEventsWithFourIndexedParamschriseth2015-10-072-4/+24
|\ | | | | Allow four indexed arguments for anynomous events.
| * Allow four indexed arguments for anynomous events.chriseth2015-10-072-4/+24
| |
* | Reject ether sent to library.chriseth2015-10-071-0/+23
|/
* Merge pull request #117 from chriseth/internalTypesForLibrarychriseth2015-10-074-5/+118
|\ | | | | Internal types for library
| * Compiler version stamp.chriseth2015-10-061-0/+11
| |
| * Add structs to library interface.chriseth2015-10-061-1/+2
| |
| * Provide access to scoped structs.chriseth2015-10-061-0/+27
| |
| * Compute canonical names of types for function signatures.chriseth2015-10-064-31/+50
| |
| * Encode storage items correctly for library calls.chriseth2015-10-061-0/+26
| |
| * Test for internal types.chriseth2015-10-061-0/+29
| |
* | Merge pull request #115 from chriseth/testLongConstructorArgumentschriseth2015-10-061-0/+28
|\ \ | |/ |/| Test long constructor arguments.
| * Test long constructor arguments.chriseth2015-10-051-0/+28
| |
* | Report warning in tests if requested.chriseth2015-10-031-13/+11
|/
* Store small byte arrays and strings in storage in one slot with theirchriseth2015-10-021-0/+110
| | | | length.
* -fixed the warning printingLianaHus2015-10-021-3/+3
| | | | -style fixes
* added warning for noninitialized references in storage.LianaHus2015-10-021-9/+23
|
* added testLianaHus2015-10-021-0/+18
|
* Bugfix in calldata unpacker.chriseth2015-10-012-1/+20
| | | | | The offset was not specified correctly if memory activity preceded the unpacker.
* Merge pull request #91 from chriseth/literalStringsToStoragePointerchriseth2015-09-241-0/+10
|\ | | | | Literal strings to storage pointer
| * Test that literal strings cannot be assigned to storage pointers.chriseth2015-09-231-0/+10
| |
* | 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-234-213/+258
|\ | | | | Support mulitple errors and warnings.
| * Refactoring: Check types outside of AST and recover from some errors.chriseth2015-09-224-213/+258
| |
* | 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-152-7/+7
|
* fixed rebaseLianaHus2015-09-151-17/+0
|
* moved the testLianaHus2015-09-152-1/+17
| | | | | | 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
|
* Merge pull request #66 from chriseth/sol_librarieschriseth2015-09-127-8/+103
|\ | | | | Calling libraries.
| * Possibility to call library functions.chriseth2015-09-113-5/+57
| |
| * Transition from bytecode to more general linker objects.chriseth2015-09-114-4/+4
| |
| * Parsing and type checking of libraries without inheritance.chriseth2015-09-112-0/+43
| |
* | Merge pull request #69 from LianaHus/sol_enum_too_many_indexed_argschriseth2015-09-111-1/+0
|\ \ | |/ |/| too many indexed arguments for event
| * add call for EventDefinition::checkTypeRequirements()LianaHus2015-09-112-15/+0
| |
| * added testLianaHus2015-09-111-0/+14
| | | | | | | | | | Conflicts: test/libsolidity/SolidityEndToEndTest.cpp
* | Merge pull request #65 from LianaHus/sol_Creating_a_contract_from_within_itselfchriseth2015-09-111-0/+12
|\ \ | |/ |/| Added error when creating a contract from within itself
| * style fixesLianaHus2015-09-111-1/+1
| |
| * added type check if the type of the var decl is one of base contract typeLianaHus2015-09-102-11/+12
| |
| * added testLianaHus2015-09-101-0/+11
| | | | | | | | | | Conflicts: test/libsolidity/SolidityEndToEndTest.cpp
* | - added tests to test empty commentLianaHus2015-09-103-0/+36
|/ | | | | - fixed skipSingleLineComment - some style fixes
* 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
| |
* | - renamed AST to ast and ABI to abiLianaHus2015-09-081-1/+1
| | | | | | | | - style fixes
* | removed get prefixLianaHus2015-09-084-23/+23
| | | | | | | | style fixes
* | renamed getter functionsLianaHus2015-09-0811-154/+154
|/
* 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-2014-0/+12249