You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2020/04/16 12:18:40 UTC
[commons-numbers] 25/26: Add integer case to double constructor
test cases.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 466d33e9b9028740ed3b4e9259f4423e8fc4750b
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Wed Apr 15 22:40:21 2020 +0100
Add integer case to double constructor test cases.
---
.../test/java/org/apache/commons/numbers/fraction/CommonTestCases.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/CommonTestCases.java b/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/CommonTestCases.java
index b0f703f..59bd68e 100644
--- a/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/CommonTestCases.java
+++ b/commons-numbers-fraction/src/test/java/org/apache/commons/numbers/fraction/CommonTestCases.java
@@ -198,6 +198,7 @@ final class CommonTestCases {
testCases.add(new DoubleToFractionTestCase(0.00000000000001, 0, 1));
testCases.add(new DoubleToFractionTestCase(0.40000000000001, 2, 5));
testCases.add(new DoubleToFractionTestCase(15.0000000000001, 15, 1));
+ testCases.add(new DoubleToFractionTestCase(15.0, 15, 1));
testCases.add(new DoubleToFractionTestCase(0.0, 0, 1));
testCases.add(new DoubleToFractionTestCase(-0.0, 0, 1));