aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-11-06 04:59:15 +0800
committerGitHub <noreply@github.com>2018-11-06 04:59:15 +0800
commit88aee34c22d86a004848ae8bdc818b5168dd94cb (patch)
tree7e06ca7aca850dc848a2aee5ce15bca86e143f26 /test
parente4da724fb85b598dfffbfd8f874c6ec07a724316 (diff)
parent36903d7e27811dd7c4d26c869c7b4f7296c02484 (diff)
downloaddexon-solidity-88aee34c22d86a004848ae8bdc818b5168dd94cb.tar.gz
dexon-solidity-88aee34c22d86a004848ae8bdc818b5168dd94cb.tar.zst
dexon-solidity-88aee34c22d86a004848ae8bdc818b5168dd94cb.zip
Merge pull request #5347 from ethereum/boostRationalNegativeDenominator
Remove uses of boost::rational with negative denominator in tests.
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityTypes.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityTypes.cpp b/test/libsolidity/SolidityTypes.cpp
index e171d974..ee637261 100644
--- a/test/libsolidity/SolidityTypes.cpp
+++ b/test/libsolidity/SolidityTypes.cpp
@@ -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"