Matías A. Ré Medina
1ebeb7e588
Change isolate_tests to support single files as an input
...
On the documentation the examples for the usage of isolate_tests.py are shown with single files, and it's currently not working. It only works for folders or wildcards that return more than one file, since that's how os.walk works within a loop for that cases.
Proposed an simple and easy fix.
I extracted the core functionality for extracting tests from files, and made another function called `extract_and_write`
If the program receives a single file the function `extract_and_write` is called once, it even works for `docs` when specified.
If the program receives a path or a wildcard, works as used to.
2018-07-09 11:28:09 +01:00
Alex Beregszaszi
273be204b6
Rename eth to aleth in testing scripts
2018-07-09 11:10:39 +01:00
Alex Beregszaszi
8b8565c873
Simplify code regarding eth in tests.sh
2018-07-09 11:08:36 +01:00
Erik Kundt
19f6b5ad05
Updates interface constructor and function type test.
2018-07-06 19:42:44 +02:00
chriseth
f3e0bf1dd8
Merge pull request #4418 from ethereum/initialConstants
...
Only allow compile-time constants for constant state variables.
2018-07-05 17:07:32 +02:00
chriseth
2987e33e23
Merge pull request #4424 from ethereum/fixBytesAlloc
...
Fix allocation of byte arrays.
2018-07-05 17:06:37 +02:00
chriseth
98c0347722
Merge pull request #4435 from ethereum/pullBeforePush
...
Pull before pushing to bytecode (as on *ix).
2018-07-05 14:36:53 +02:00
chriseth
c8ac861832
Fix allocation of byte arrays.
2018-07-05 14:18:14 +02:00
chriseth
0e12903094
Pull before pushing to bytecode (as on *ix).
2018-07-05 12:18:43 +02:00
chriseth
b1ab81ef22
Merge pull request #4387 from ethereum/endToEndDefaultVisbility
...
Specify default visibility in unit tests
2018-07-05 10:32:07 +02:00
Matías A. Ré Medina
de78c816b5
Docs: Missing new line for markdown to display properly
...
Somehow on the last PR I sent about this section a newline disappeared, I added it again.
2018-07-04 20:23:14 -03:00
Erik Kundt
febbfd4204
Adds visibility to compilation tests.
2018-07-04 19:20:51 +02:00
Erik Kundt
87ab7d1821
Fixes compilation errors.
2018-07-04 15:45:42 +02:00
Erik Kundt
cbfe3766db
Fixes defects in end-to-end tests.
2018-07-04 15:45:42 +02:00
Erik Kundt
7cb46ea707
Fixes assembly test.
2018-07-04 15:45:42 +02:00
Erik Kundt
fc2b006fe1
Updates unit test to specify visibility.
2018-07-04 15:45:42 +02:00
Erik Kundt
b42929975f
Updates end-to-end tests to specify default visibility.
2018-07-04 15:32:49 +02:00
Erik Kundt
3f53db402f
Fixes wrong visibility specifier in interface constructor test.
2018-07-04 15:15:30 +02:00
chriseth
7101a89056
Merge pull request #4380 from elopio/patch-3
...
Update examples to use constructor keyword
2018-07-04 14:16:46 +02:00
chriseth
4a332ab324
Merge pull request #4409 from ethereum/viewPureChecker
...
Enforce state mutability in view pure checker.
2018-07-04 14:09:46 +02:00
chriseth
476372243b
Merge pull request #4423 from ethereum/enforce_error_gasleft
...
[BREAKING] Enforce error on msg.gas and block.blockhash()
2018-07-04 13:56:10 +02:00
Erik Kundt
0dd3e6052c
Fixes broken syntax tests.
2018-07-04 11:47:35 +02:00
Leonardo Alt
8202d512e0
Enforcing error on msg.gas and block.blockhash()
2018-07-04 11:42:05 +02:00
Daniel Kirchner
f5be38bff1
Extend view pure test suite.
2018-07-04 11:25:45 +02:00
Erik Kundt
2e0d019ef0
Adds default visibility specifier to syntax tests.
2018-07-04 10:45:59 +02:00
Daniel Kirchner
d9a8f2aace
Update documentation and Changelog.
2018-07-04 10:14:58 +02:00
Daniel Kirchner
0a738b4ac4
Adjust tests wrt strict view pure checker.
2018-07-04 10:14:58 +02:00
Daniel Kirchner
7ea8365ab0
Remove v050 check for enforcing "view" in ViewPureChecker.
2018-07-04 10:14:58 +02:00
Leo Arias
8fdf3f5d45
update the style guide
2018-07-04 04:29:00 +00:00
chriseth
8ed3da1d5f
Only allow compile-time constants for constant state variables.
2018-07-03 23:03:26 +02:00
chriseth
bc6b42a9f6
Changelog entry.
2018-07-03 22:51:57 +02:00
chriseth
2211739fc4
Update tests.
2018-07-03 22:51:55 +02:00
chriseth
87241fd58c
Fallback function has to be external.
2018-07-03 22:51:36 +02:00
chriseth
533d5d4b1c
Merge pull request #4379 from ethereum/constructorArgsTwice
...
Disallow constructor arguments given multiple times.
2018-07-03 22:49:02 +02:00
chriseth
16f8c23aa0
Merge pull request #4367 from shad-k/fix/issue-4238
...
Add custom.css for docs to change pre tag styles
2018-07-03 22:40:51 +02:00
Shadab Khan
a673785326
Add custom.css for docs to change pre tag styles
...
Specify white space for table cells
Add custom.css for docs to change pre tag styles
Specify white space for table cells
Rearrange code
Delete theme_overrides.css
Remove extra code
2018-07-04 00:08:59 +05:30
chriseth
672bc7fc00
Merge pull request #4407 from ajsantander/exit-if-no-eth
...
Avoid hanging in tests.sh when IPC program is not found
2018-07-03 20:22:54 +02:00
chriseth
58aeffb45b
Merge pull request #4413 from ethereum/dropConstantKeywordOnly
...
Drop constant keyword only
2018-07-03 20:17:01 +02:00
Daniel Kirchner
a7fc8a996b
Update Changelog.
2018-07-03 15:31:34 +02:00
Daniel Kirchner
717c70a88f
Update test suite.
2018-07-03 15:31:34 +02:00
Daniel Kirchner
f7153ee58a
Update documentation.
2018-07-03 15:31:34 +02:00
Daniel Kirchner
3984beef7d
Remove constant keyword from parser.
2018-07-03 15:31:34 +02:00
chriseth
96a04be684
Merge pull request #4389 from ethereum/soltestfix
...
fix default difficulty to comply with YP rules
2018-07-03 15:07:58 +02:00
Christian Parpart
09f3532ea9
Merge pull request #4274 from ethereum/v050-var-keyword-removal-v2
...
[BREAKING] var keyword removal
2018-07-03 12:04:41 +02:00
Christian Parpart
0b5dd7320a
Changelog: added `var
`-keyword change
2018-07-03 10:53:09 +02:00
Christian Parpart
dbd0723a6d
grammar: removes the var-keyword from the grammar
2018-07-03 10:53:09 +02:00
Christian Parpart
133fbdbf18
documentation: adjustments to not use the "var" keyword
2018-07-03 10:53:09 +02:00
Christian Parpart
1486d215b9
libsolidity: turns the var-keyword use from deprecation-warning to an error and include explicit type suggestion
2018-07-03 10:53:09 +02:00
ajs
260e044db5
Avoid hanging in tests.sh when IPC program is not found
2018-07-02 22:23:49 -03:00
chriseth
f7a9c4203e
Disallow packed encoding of literals.
2018-07-03 01:02:00 +02:00