[Schmitzm-commits] r916 - trunk/src_junit/schmitzm/lang

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jun 28 20:17:40 CEST 2010


Author: alfonx
Date: 2010-06-28 20:17:39 +0200 (Mon, 28 Jun 2010)
New Revision: 916

Added:
   trunk/src_junit/schmitzm/lang/LangUtilTest.java
Log:
Eine neue Testmethode weil ich was ausprobieren musste...

Added: trunk/src_junit/schmitzm/lang/LangUtilTest.java
===================================================================
--- trunk/src_junit/schmitzm/lang/LangUtilTest.java	2010-06-26 11:08:30 UTC (rev 915)
+++ trunk/src_junit/schmitzm/lang/LangUtilTest.java	2010-06-28 18:17:39 UTC (rev 916)
@@ -0,0 +1,20 @@
+package schmitzm.lang;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+public class LangUtilTest {
+
+	@Test
+	public void testRoundDoubleIntIntArray() {
+		Double val = 0.01735357917570499;
+		int digits = 3;
+
+		for (int i = 0; i < 10 ; i++) {
+			val = LangUtil.round(val, digits);
+			assertEquals("0.017",new Double(val).toString());
+		}
+	}
+
+}


Property changes on: trunk/src_junit/schmitzm/lang/LangUtilTest.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:keywords
   + Id URL
Name: svn:eol-style
   + native



More information about the Schmitzm-commits mailing list