aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/Imports.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-01-07 00:11:10 +0800
committerGitHub <noreply@github.com>2017-01-07 00:11:10 +0800
commita4d7a590ea0a38c3418cca50192e5fcedf38a8fb (patch)
tree55be823aa5a97e22756ef2498299703cff73698b /test/libsolidity/Imports.cpp
parent0031e6a530a12d98752a1ad85750f25c9890a6ba (diff)
parent779a01faa9b18a58a133a120d6aebe1df612cb00 (diff)
downloaddexon-solidity-a4d7a590ea0a38c3418cca50192e5fcedf38a8fb.tar.gz
dexon-solidity-a4d7a590ea0a38c3418cca50192e5fcedf38a8fb.tar.zst
dexon-solidity-a4d7a590ea0a38c3418cca50192e5fcedf38a8fb.zip
Merge pull request #1537 from ethereum/absolute-path
absolute path detection is not confused by ".dir"
Diffstat (limited to 'test/libsolidity/Imports.cpp')
-rw-r--r--test/libsolidity/Imports.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/Imports.cpp b/test/libsolidity/Imports.cpp
index bc6adc26..e3f0b281 100644
--- a/test/libsolidity/Imports.cpp
+++ b/test/libsolidity/Imports.cpp
@@ -164,6 +164,14 @@ BOOST_AUTO_TEST_CASE(context_dependent_remappings)
BOOST_CHECK(c.compile());
}
+BOOST_AUTO_TEST_CASE(filename_with_period)
+{
+ CompilerStack c;
+ c.addSource("a/a.sol", "import \".b.sol\"; contract A is B {} pragma solidity >=0.0;");
+ c.addSource("a/.b.sol", "contract B {} pragma solidity >=0.0;");
+ BOOST_CHECK(!c.compile());
+}
+
BOOST_AUTO_TEST_SUITE_END()
}