diff options
author | Glen Stampoultzis <glens@apache.org> | 2002-04-22 10:20:04 +0000 |
---|---|---|
committer | Glen Stampoultzis <glens@apache.org> | 2002-04-22 10:20:04 +0000 |
commit | 0eaa163e10c69b43c24d4743ba573feaca44eaa7 (patch) | |
tree | ee2f2ab6df3c57d6147806ba532fb28d33642f5a /src/testcases/org/apache/poi/hssf/util | |
parent | a9ae23d28425226bd1f3ee9716fae8cd873491c9 (diff) | |
download | poi-0eaa163e10c69b43c24d4743ba573feaca44eaa7.tar.gz poi-0eaa163e10c69b43c24d4743ba573feaca44eaa7.zip |
Testcase for RKUtil
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352462 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/util')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/util/TestRKUtil.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/util/TestRKUtil.java b/src/testcases/org/apache/poi/hssf/util/TestRKUtil.java new file mode 100644 index 0000000000..eee91d48c4 --- /dev/null +++ b/src/testcases/org/apache/poi/hssf/util/TestRKUtil.java @@ -0,0 +1,20 @@ +package org.apache.poi.hssf.util; + +import junit.framework.TestCase; + +public class TestRKUtil + extends TestCase +{ + public TestRKUtil(String s) + { + super(s); + } + + public void testDecode() + throws Exception + { + assertEquals(3.0, RKUtil.decodeNumber(1074266112), 0.0000001); + assertEquals(3.3, RKUtil.decodeNumber(1081384961), 0.0000001); + assertEquals(3.33, RKUtil.decodeNumber(1081397249), 0.0000001); + } +} |