Fix solidity contract test

pull/754/head
Dominik Muhs 6 years ago
parent 4c3eeb2a77
commit 8813792e36
  1. 4
      tests/solidity_contract_test.py

@ -31,8 +31,8 @@ class SolidityContractTest(BaseTestCase):
input_file = TEST_FILES / "constructor_assert.sol" input_file = TEST_FILES / "constructor_assert.sol"
contract = SolidityContract(str(input_file), name="AssertFail") contract = SolidityContract(str(input_file), name="AssertFail")
code_info = contract.get_source_info(62, constructor=True) code_info = contract.get_source_info(70, constructor=True)
self.assertEqual(code_info.filename, str(input_file)) self.assertEqual(code_info.filename, str(input_file))
self.assertEqual(code_info.lineno, 6) self.assertEqual(code_info.lineno, 6)
self.assertEqual(code_info.code, "assert(var1>0)") self.assertEqual(code_info.code, "assert(var1 > 0)")

Loading…
Cancel
Save