Move clashing libraries to common source in test

Since contracts and libraries only collide if they share a common
source file now, this test only works if both libraries are in the
same source.
This commit is contained in:
Rhett Aultman 2016-12-12 00:00:50 -08:00 committed by Rhett Aultman
parent e3b0827721
commit 220ccfb492

View File

@ -104,8 +104,7 @@ BOOST_AUTO_TEST_CASE(simple_alias)
BOOST_AUTO_TEST_CASE(library_name_clash)
{
CompilerStack c;
c.addSource("a", "library A {} pragma solidity >=0.0;");
c.addSource("b", "library A {} pragma solidity >=0.0;");
c.addSource("a", "library A {} library A {} pragma solidity >=0.0;");
BOOST_CHECK(!c.compile());
}