|
|
@ -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)") |
|
|
|