mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tests for library name clashes.
This commit is contained in:
parent
d2f18c73f7
commit
1cf6acca90
@ -101,6 +101,22 @@ BOOST_AUTO_TEST_CASE(simple_alias)
|
|||||||
BOOST_CHECK(c.compile());
|
BOOST_CHECK(c.compile());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(library_name_clash)
|
||||||
|
{
|
||||||
|
CompilerStack c;
|
||||||
|
c.addSource("a", "library A {}");
|
||||||
|
c.addSource("b", "library A {}");
|
||||||
|
BOOST_CHECK(!c.compile());
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(library_name_clash_with_contract)
|
||||||
|
{
|
||||||
|
CompilerStack c;
|
||||||
|
c.addSource("a", "contract A {}");
|
||||||
|
c.addSource("b", "library A {}");
|
||||||
|
BOOST_CHECK(c.compile());
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(complex_import)
|
BOOST_AUTO_TEST_CASE(complex_import)
|
||||||
{
|
{
|
||||||
CompilerStack c;
|
CompilerStack c;
|
||||||
|
Loading…
Reference in New Issue
Block a user