SvgCssUtils { @Deprecated public static float convertPtsToPx(float pts) { return pts / 0.75f; } private  SvgCssUtils(); static List<String> splitValueList(String value); static String convertFloatToString(float value); static String convertDoubleToString(double value); @Deprecated static float convertPtsToPx(float pts); @Deprecated static double convertPtsToPx(double pts); @Deprecated static boolean isStyleSheetLink(IElementNode headChildElement);  }
@Test public void normalConvertPtsToPxTest() { float[] input = new float[] { -1f, 0f, 1f }; float[] expected = new float[] {-1.3333334f, 0f, 1.3333334f}; for (int i = 0; i < input.length; i++) { float actual = SvgCssUtils.convertPtsToPx(input[i]); Assert.assertEquals(expected[i], actual, 0f); } }
@Test public void convertFloatMaximumToPdfTest() { float expected = Float.POSITIVE_INFINITY; float actual = SvgCssUtils.convertPtsToPx(Float.MAX_VALUE); Assert.assertEquals(expected, actual, 0f); }
@Test public void convertFloatMinimumToPdfTest() { float expected = 1.4E-45f; float actual = SvgCssUtils.convertPtsToPx(Float.MIN_VALUE); Assert.assertEquals(expected, actual, 0f); }