aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVoR0220 <rj@erisindustries.com>2017-01-06 02:01:27 +0800
committerVoR0220 <rj@erisindustries.com>2017-01-09 12:53:54 +0800
commit6d9020b3b80aff0baf7d6e023460cfbcd930de6b (patch)
tree00bf573709390ab0a977fa478ec4c91a66701bc4 /test
parent4f62980d52daa58f21dad3ef7caca5f854395c38 (diff)
downloaddexon-solidity-6d9020b3b80aff0baf7d6e023460cfbcd930de6b.tar.gz
dexon-solidity-6d9020b3b80aff0baf7d6e023460cfbcd930de6b.tar.zst
dexon-solidity-6d9020b3b80aff0baf7d6e023460cfbcd930de6b.zip
fixed test and added solution
Signed-off-by: VoR0220 <rj@erisindustries.com>
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/Imports.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/Imports.cpp b/test/libsolidity/Imports.cpp
index 33978b1f..7945f729 100644
--- a/test/libsolidity/Imports.cpp
+++ b/test/libsolidity/Imports.cpp
@@ -176,8 +176,8 @@ BOOST_AUTO_TEST_CASE(context_dependent_remappings_ensure_default_and_module_pres
{
CompilerStack c;
c.setRemappings(vector<string>{"foo=vendor/foo_2.0.0", "vendor/bar:foo=vendor/foo_1.0.0", "bar=vendor/bar"});
- c.addSource("main.sol", "import \"foo/foo.sol\"; import {Bar} \"bar/bar.sol\"; contract Main is Foo2, Bar {} pragma solidity >=0.0;");
- c.addSource("vendor/bar/bar.sol", "import \"foo/foo.sol\"; contract Bar is Foo1 {} pragma solidity >=0.0;");
+ c.addSource("main.sol", "import \"foo/foo.sol\"; import {Bar} from \"bar/bar.sol\"; contract Main is Foo2, Bar {} pragma solidity >=0.0;");
+ c.addSource("vendor/bar/bar.sol", "import \"foo/foo.sol\"; contract Bar {Foo1 foo;} pragma solidity >=0.0;");
c.addSource("vendor/foo_1.0.0/foo.sol", "contract Foo1 {} pragma solidity >=0.0;");
c.addSource("vendor/foo_2.0.0/foo.sol", "contract Foo2 {} pragma solidity >=0.0;");
BOOST_CHECK(c.compile());