|
|
|
@ -12,7 +12,7 @@ class SolidityContractTest(BaseTestCase): |
|
|
|
|
input_file = TEST_FILES / "multi_contracts.sol" |
|
|
|
|
contract = SolidityContract(str(input_file)) |
|
|
|
|
|
|
|
|
|
code_info = contract.get_source_info(142) |
|
|
|
|
code_info = contract.get_source_info(109) |
|
|
|
|
|
|
|
|
|
self.assertEqual(code_info.filename, str(input_file)) |
|
|
|
|
self.assertEqual(code_info.lineno, 14) |
|
|
|
@ -22,7 +22,7 @@ class SolidityContractTest(BaseTestCase): |
|
|
|
|
input_file = TEST_FILES / "multi_contracts.sol" |
|
|
|
|
contract = SolidityContract(str(input_file), name="Transfer1") |
|
|
|
|
|
|
|
|
|
code_info = contract.get_source_info(142) |
|
|
|
|
code_info = contract.get_source_info(109) |
|
|
|
|
|
|
|
|
|
self.assertEqual(code_info.filename, str(input_file)) |
|
|
|
|
self.assertEqual(code_info.lineno, 6) |
|
|
|
@ -32,7 +32,7 @@ class SolidityContractTest(BaseTestCase): |
|
|
|
|
input_file = TEST_FILES / "constructor_assert.sol" |
|
|
|
|
contract = SolidityContract(str(input_file), name="AssertFail") |
|
|
|
|
|
|
|
|
|
code_info = contract.get_source_info(70, constructor=True) |
|
|
|
|
code_info = contract.get_source_info(75, constructor=True) |
|
|
|
|
|
|
|
|
|
self.assertEqual(code_info.filename, str(input_file)) |
|
|
|
|
self.assertEqual(code_info.lineno, 6) |
|
|
|
|