From f63c846c03eb7f3342a5ba3dc90097fc2a5cf144 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 10 Jul 2017 07:26:40 +0000 Subject: [PATCH] expand range of acceptable values in TestFonts git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1801416 13f79535-47bb-0310-9956-ffa450edef68 --- src/ooxml/testcases/org/apache/poi/sl/TestFonts.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ooxml/testcases/org/apache/poi/sl/TestFonts.java b/src/ooxml/testcases/org/apache/poi/sl/TestFonts.java index a34b007009..f395a84a4b 100644 --- a/src/ooxml/testcases/org/apache/poi/sl/TestFonts.java +++ b/src/ooxml/testcases/org/apache/poi/sl/TestFonts.java @@ -18,7 +18,6 @@ package org.apache.poi.sl; import static org.apache.poi.sl.SLCommonUtils.xslfOnly; -import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assume.assumeFalse; @@ -74,7 +73,7 @@ public class TestFonts { private static final String INIT_FONTS[] = { "mona.ttf" }; // currently linux and mac return quite different values - private static final int[] expected_sizes = { 311, 312, 313, 399 }; + private static final int[] expected_sizes = { 311, 312, 313, 398, 399 }; @BeforeClass public static void initGE() throws FontFormatException, IOException { @@ -108,7 +107,7 @@ public class TestFonts { Rectangle2D anc = tb.getAnchor(); // ignore font metrics differences on windows / linux (... hopefully ...) boolean found = Arrays.binarySearch(expected_sizes, (int)anc.getHeight()) > -1; - assertTrue(found); + assertTrue((int)anc.getHeight() + " not found in list of exepcted values", found); // setFont(tb, "Mona"); // FileOutputStream fos = new FileOutputStream("bla-xslf.ppt"); // ppt.write(fos); -- 2.39.5