mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove CharStream from SourceLocation.
This commit is contained in:
@@ -34,9 +34,9 @@ BOOST_AUTO_TEST_SUITE(SourceLocationTest)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(test_fail)
|
||||
{
|
||||
auto const source = std::make_shared<CharStream>("lorem ipsum", "source");
|
||||
auto const sourceA = std::make_shared<CharStream>("lorem ipsum", "sourceA");
|
||||
auto const sourceB = std::make_shared<CharStream>("lorem ipsum", "sourceB");
|
||||
auto const source = std::make_shared<std::string>("source");
|
||||
auto const sourceA = std::make_shared<std::string>("sourceA");
|
||||
auto const sourceB = std::make_shared<std::string>("sourceB");
|
||||
|
||||
BOOST_CHECK(SourceLocation{} == SourceLocation{});
|
||||
BOOST_CHECK((SourceLocation{0, 3, sourceA} != SourceLocation{0, 3, sourceB}));
|
||||
|
||||
Reference in New Issue
Block a user