From: gmungoc Date: Tue, 22 Jan 2019 10:53:47 +0000 (+0000) Subject: Tests for methods of Float X-Git-Tag: Release_2_11_4_0~45^2~18^2~299^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=64f2cead717701f2b3e9a6928775b1fb298fae56;p=jalview.git Tests for methods of Float --- 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()