aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/Imports.cpp
diff options
context:
space:
mode:
authorVoR0220 <rj@erisindustries.com>2017-01-12 02:03:54 +0800
committerVoR0220 <rj@erisindustries.com>2017-01-12 02:03:54 +0800
commitb6508ca992531154a572320bf8bb117e3b9294b9 (patch)
tree7e7e85b4caf10163825baa54cf109ddf2fd574a7 /test/libsolidity/Imports.cpp
parent4542f459f165502ed9537bb570de44640cdc4228 (diff)
downloaddexon-solidity-b6508ca992531154a572320bf8bb117e3b9294b9.tar.gz
dexon-solidity-b6508ca992531154a572320bf8bb117e3b9294b9.tar.zst
dexon-solidity-b6508ca992531154a572320bf8bb117e3b9294b9.zip
fixed
Signed-off-by: VoR0220 <rj@erisindustries.com>
Diffstat (limited to 'test/libsolidity/Imports.cpp')
-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 712f133a..56895fdc 100644
--- a/test/libsolidity/Imports.cpp
+++ b/test/libsolidity/Imports.cpp
@@ -189,14 +189,14 @@ BOOST_AUTO_TEST_CASE(context_dependent_remappings_order_independent)
c.setRemappings(vector<string>{"a:x/y/z=d", "a/b:x=e"});
c.addSource("a/main.sol", "import \"x/y/z/z.sol\"; contract Main is D {} pragma solidity >=0.0;");
c.addSource("a/b/main.sol", "import \"x/y/z/z.sol\"; contract Main is E {} pragma solidity >=0.0;");
- c.addSource("x/y/z/z.sol", "contract D {} pragma solidity >=0.0;");
+ c.addSource("d/z.sol", "contract D {} pragma solidity >=0.0;");
c.addSource("e/y/z/z.sol", "contract E {} pragma solidity >=0.0;");
BOOST_CHECK(c.compile());
CompilerStack d;
d.setRemappings(vector<string>{"a/b:x=e", "a:x/y/z=d"});
d.addSource("a/main.sol", "import \"x/y/z/z.sol\"; contract Main is D {} pragma solidity >=0.0;");
d.addSource("a/b/main.sol", "import \"x/y/z/z.sol\"; contract Main is E {} pragma solidity >=0.0;");
- d.addSource("x/y/z/z.sol", "contract D {} pragma solidity >=0.0;");
+ d.addSource("d/z.sol", "contract D {} pragma solidity >=0.0;");
d.addSource("e/y/z/z.sol", "contract E {} pragma solidity >=0.0;");
BOOST_CHECK(d.compile());
}