From 64f2cead717701f2b3e9a6928775b1fb298fae56 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 22 Jan 2019 10:53:47 +0000 Subject: [PATCH] Tests for methods of Float --- utils/test/JalviewJSTest.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/utils/test/JalviewJSTest.java b/utils/test/JalviewJSTest.java index 4059c6a..0d4d708 100644 --- a/utils/test/JalviewJSTest.java +++ b/utils/test/JalviewJSTest.java @@ -36,7 +36,18 @@ public class JalviewJSTest extends JPanel { public static void main(String[] args) { - new JalviewJSTest().doTest3(); + new JalviewJSTest().doTest4(); + } + + void doTest4() + { + Float fl = new Float(0f); + System.out.println(fl.isInfinite()); + System.out.println(fl.isNaN()); + + System.out.println(Float.isInfinite(0f)); + System.out.println(Float.isFinite(0f)); + System.out.println(Float.isNaN(0f)); } void doTest3() -- 1.7.10.2