aboutsummaryrefslogtreecommitdiffstats
path: root/test/java
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2006-06-05 11:11:48 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2006-06-05 11:11:48 +0000
commit330f3a0260704e5025177173aedb7830958b5f78 (patch)
tree3e2abd6a08f753da833659d07543d06d24da0b76 /test/java
parent0af50d4e6cb6538693da07b0ccb1d5c6411115cb (diff)
downloadxmlgraphics-fop-330f3a0260704e5025177173aedb7830958b5f78.tar.gz
xmlgraphics-fop-330f3a0260704e5025177173aedb7830958b5f78.zip
Tweak: change expected value to an absolute
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411742 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java')
-rw-r--r--test/java/org/apache/fop/util/UnitConvTestCase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/java/org/apache/fop/util/UnitConvTestCase.java b/test/java/org/apache/fop/util/UnitConvTestCase.java
index 059f0bf1d..4379460e1 100644
--- a/test/java/org/apache/fop/util/UnitConvTestCase.java
+++ b/test/java/org/apache/fop/util/UnitConvTestCase.java
@@ -38,8 +38,8 @@ public class UnitConvTestCase extends TestCase {
assertEquals("in2mpt", 792000, UnitConv.in2mpt(11.0), 1.0 / 2); //height of a letter page
assertEquals("mpt2in", 11.0, UnitConv.mpt2in(792000), 0.01 / 2); //height of a letter page
- assertEquals("mm2px/72dpi", (297.0/UnitConv.IN2MM) * 72, UnitConv.mm2px(297.0, 72), 0);
- assertEquals("mm2px/300dpi", (297.0/UnitConv.IN2MM) * 300, UnitConv.mm2px(297.0, 300), 0);
+ assertEquals("mm2px/72dpi", 841.8897764234434, UnitConv.mm2px(297.0, 72), 0);
+ assertEquals("mm2px/300dpi", 3507.8740684310146, UnitConv.mm2px(297.0, 300), 0);
}
} \ No newline at end of file