diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-01-04 01:16:33 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2017-01-04 01:18:27 +0800 |
commit | 07f34e0023c395b43c5d63ce5a4d2cf5160025fa (patch) | |
tree | 98a75a02c340488d9e3909b4ea714d4734ed5f25 /test/libsolidity/Imports.cpp | |
parent | 41fe412389645fd423c8fb2422db99892f829030 (diff) | |
download | dexon-solidity-07f34e0023c395b43c5d63ce5a4d2cf5160025fa.tar.gz dexon-solidity-07f34e0023c395b43c5d63ce5a4d2cf5160025fa.tar.zst dexon-solidity-07f34e0023c395b43c5d63ce5a4d2cf5160025fa.zip |
test: add a test importing a file name starting with a period
Diffstat (limited to 'test/libsolidity/Imports.cpp')
-rw-r--r-- | test/libsolidity/Imports.cpp | 8 |
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() } |