Browse Source

Update assertions to reflect recent modification to the method in question

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411545 13f79535-47bb-0310-9956-ffa450edef68
pull/25/head
Andreas L. Delmelle 18 years ago
parent
commit
1338142fda
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      test/java/org/apache/fop/util/UnitConvTestCase.java

+ 2
- 2
test/java/org/apache/fop/util/UnitConvTestCase.java View File

@@ -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", 842, UnitConv.mm2px(297, 72), 0.0001);
assertEquals("mm2px/300dpi", 3508, UnitConv.mm2px(297, 300), 0.0001);
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);
}
}

Loading…
Cancel
Save