Skip to content

Commit

Permalink
Remove uses of boost::rational with negative denominator, which break…
Browse files Browse the repository at this point in the history
…s with boost 1.68.
  • Loading branch information
ekpyron committed Nov 5, 2018
1 parent e4da724 commit 36903d7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/libsolidity/SolidityTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ BOOST_AUTO_TEST_CASE(type_identifiers)
BOOST_CHECK_EQUAL(RationalNumberType(rational(7, 1)).identifier(), "t_rational_7_by_1");
BOOST_CHECK_EQUAL(RationalNumberType(rational(200, 77)).identifier(), "t_rational_200_by_77");
BOOST_CHECK_EQUAL(RationalNumberType(rational(2 * 200, 2 * 77)).identifier(), "t_rational_200_by_77");
BOOST_CHECK_EQUAL(RationalNumberType(rational(-2 * 200, -2 * 77)).identifier(), "t_rational_200_by_77");
BOOST_CHECK_EQUAL(RationalNumberType(rational(-2 * 200, 2 * 77)).identifier(), "t_rational_minus_200_by_77");
BOOST_CHECK_EQUAL(RationalNumberType(rational(2 * 200, -2 * 77)).identifier(), "t_rational_minus_200_by_77");
BOOST_CHECK_EQUAL(
StringLiteralType(Literal(SourceLocation{}, Token::StringLiteral, make_shared<string>("abc - def"))).identifier(),
"t_stringliteral_196a9142ee0d40e274a6482393c762b16dd8315713207365e1e13d8d85b74fc4"
Expand Down

0 comments on commit 36903d7

Please sign in to comment.