git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f0755a
)
Tests for methods of Float
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 22 Jan 2019 10:53:47 +0000
(10:53 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 22 Jan 2019 10:53:47 +0000
(10:53 +0000)
utils/test/JalviewJSTest.java
patch
|
blob
|
history
diff --git
a/utils/test/JalviewJSTest.java
b/utils/test/JalviewJSTest.java
index
4059c6a
..
0d4d708
100644
(file)
--- 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()