You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ja...@apache.org on 2014/02/22 08:21:18 UTC

svn commit: r1570804 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/common/function/TestPDFunctionType4.java

Author: jahewson
Date: Sat Feb 22 07:21:18 2014
New Revision: 1570804

URL: http://svn.apache.org/r1570804
Log:
Fix Type 4 Function test

Modified:
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/common/function/TestPDFunctionType4.java

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/common/function/TestPDFunctionType4.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/common/function/TestPDFunctionType4.java?rev=1570804&r1=1570803&r2=1570804&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/common/function/TestPDFunctionType4.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/common/function/TestPDFunctionType4.java Sat Feb 22 07:21:18 2014
@@ -94,7 +94,7 @@ public class TestPDFunctionType4 extends
     public void testFunctionArgumentOrder() throws Exception
     {
         String functionText = "{ pop }";
-        //pops the top-most argument and returns the second as is.
+        // pops an argument (2nd) and returns the next argument (1st)
 
         PDFunctionType4 function = createFunction(functionText,
                 new float[] {-1.0f, 1.0f, -1.0f, 1.0f},
@@ -104,8 +104,7 @@ public class TestPDFunctionType4 extends
         float[] output = function.eval(input);
 
         assertEquals(1, output.length);
-        assertEquals(0.0f, output[0], 0.0001f);
-        //TODO not sure if this is really correct
+        assertEquals(-0.7f, output[0], 0.0001f);
     }
 
 }