Fix off by 1 error in codecopy (#812)

* Fix off by 1 in codecopy

* Add regression test

* Improve formatting
This commit is contained in:
Mark Mossberg
2018-03-15 16:41:29 -04:00
committed by GitHub
parent fb3938bb3e
commit eaa0e524b4
3 changed files with 7 additions and 2 deletions

5
tests/binaries/780.sol Normal file
View File

@@ -0,0 +1,5 @@
contract C {
function C(bool x) {
return;
}
}

View File

@@ -128,7 +128,7 @@ class IntegrationTest(unittest.TestCase):
self.assertTrue(len(actual) > 100 )
def test_eth_regressions(self):
contracts = [676, 678, 701, 714, 735, 760]
contracts = [676, 678, 701, 714, 735, 760, 780]
for contract in contracts:
self._simple_cli_run('{}.sol'.format(contract))