diff options
author | chriseth <chris@ethereum.org> | 2018-12-19 22:11:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-19 22:11:20 +0800 |
commit | c8f20e075f46ce35a9975f43676dbe1794d7ea29 (patch) | |
tree | 642c9567b2272cd4450a702f2a735d1243754543 /test/liblangutil/SourceLocation.cpp | |
parent | 8875092073a30c94659f8a373658ca8286803054 (diff) | |
parent | 62fe57479e7d8949e4ed2e0efb31238d5d8d6d0a (diff) | |
download | dexon-solidity-c8f20e075f46ce35a9975f43676dbe1794d7ea29.tar dexon-solidity-c8f20e075f46ce35a9975f43676dbe1794d7ea29.tar.gz dexon-solidity-c8f20e075f46ce35a9975f43676dbe1794d7ea29.tar.bz2 dexon-solidity-c8f20e075f46ce35a9975f43676dbe1794d7ea29.tar.lz dexon-solidity-c8f20e075f46ce35a9975f43676dbe1794d7ea29.tar.xz dexon-solidity-c8f20e075f46ce35a9975f43676dbe1794d7ea29.tar.zst dexon-solidity-c8f20e075f46ce35a9975f43676dbe1794d7ea29.zip |
Merge pull request #5635 from ethereum/cpp-default-ctors
[RFC] C++ `=default` ctors/dtors and the use of non-static member initializer syntax.
Diffstat (limited to 'test/liblangutil/SourceLocation.cpp')
-rw-r--r-- | test/liblangutil/SourceLocation.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/liblangutil/SourceLocation.cpp b/test/liblangutil/SourceLocation.cpp index ef4103da..5bdce88e 100644 --- a/test/liblangutil/SourceLocation.cpp +++ b/test/liblangutil/SourceLocation.cpp @@ -37,12 +37,12 @@ BOOST_AUTO_TEST_CASE(test_fail) auto const sourceA = std::make_shared<CharStream>("", "sourceA"); auto const sourceB = std::make_shared<CharStream>("", "sourceB"); - BOOST_CHECK(SourceLocation() == SourceLocation()); - BOOST_CHECK(SourceLocation(0, 3, sourceA) != SourceLocation(0, 3, sourceB)); - BOOST_CHECK(SourceLocation(0, 3, source) == SourceLocation(0, 3, source)); - BOOST_CHECK(SourceLocation(3, 7, source).contains(SourceLocation(4, 6, source))); - BOOST_CHECK(!SourceLocation(3, 7, sourceA).contains(SourceLocation(4, 6, sourceB))); - BOOST_CHECK(SourceLocation(3, 7, sourceA) < SourceLocation(4, 6, sourceB)); + BOOST_CHECK(SourceLocation{} == SourceLocation{}); + BOOST_CHECK((SourceLocation{0, 3, sourceA} != SourceLocation{0, 3, sourceB})); + BOOST_CHECK((SourceLocation{0, 3, source} == SourceLocation{0, 3, source})); + BOOST_CHECK((SourceLocation{3, 7, source}.contains(SourceLocation{4, 6, source}))); + BOOST_CHECK((!SourceLocation{3, 7, sourceA}.contains(SourceLocation{4, 6, sourceB}))); + BOOST_CHECK((SourceLocation{3, 7, sourceA} < SourceLocation{4, 6, sourceB})); } BOOST_AUTO_TEST_SUITE_END() |