summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlzhang2011-08-19 03:55:10 (EDT)
committer xgu2011-08-31 02:00:50 (EDT)
commit8fb258e7b34f9c735b089a5e0042a51b0ac957d1 (patch)
tree2861a0bbdf84cf78090e7067f00eddac3a61e1e9
parent8a8044bcbcbb9dcfc36638a198a9f623e3ed8097 (diff)
downloadorg.eclipse.birt-8fb258e7b34f9c735b089a5e0042a51b0ac957d1.zip
org.eclipse.birt-8fb258e7b34f9c735b089a5e0042a51b0ac957d1.tar.gz
org.eclipse.birt-8fb258e7b34f9c735b089a5e0042a51b0ac957d1.tar.bz2
Checkin: update a test case in BirtMath
-rw-r--r--core/org.eclipse.birt.core.tests/test/org/eclipse/birt/core/script/bre/BirtMathTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/org.eclipse.birt.core.tests/test/org/eclipse/birt/core/script/bre/BirtMathTest.java b/core/org.eclipse.birt.core.tests/test/org/eclipse/birt/core/script/bre/BirtMathTest.java
index ff2aaba..0d6f884 100644
--- a/core/org.eclipse.birt.core.tests/test/org/eclipse/birt/core/script/bre/BirtMathTest.java
+++ b/core/org.eclipse.birt.core.tests/test/org/eclipse/birt/core/script/bre/BirtMathTest.java
@@ -209,12 +209,13 @@ public class BirtMathTest extends TestCase
"BirtMath.ceiling( 999.5999,10000 )",
"BirtMath.ceiling( 999.5999,0 )",
"BirtMath.ceiling( 0,100 )",
- "BirtMath.ceiling( 0,-100 )"
+ "BirtMath.ceiling( 0,-100 )",
+ "BirtMath.ceiling( 25.34, 0.1 )"
};
- double values[] = new double[]{0,110,120,120,105,-110,-102,-104,1000,10000,0,0,0};
+ double values[] = new double[]{0,110,120,120,105,-110,-102,-104,1000,10000,0,0,0,25.4};
- for( int i = 0; i < values.length; i++ )
+ for( int i = 0; i < scripts.length; i++ )
{
assertEquals( ((Number)cx.evaluateString( scope,
scripts[i],