Commit 4e71fb0976623027659795e7377c3a1302b2cdda

henry 2003-09-24T22:12:57

Fixed some error return values.

diff --git a/test/FTFace-Test.cpp b/test/FTFace-Test.cpp
index 186ca6e..dabe4ed 100755
--- a/test/FTFace-Test.cpp
+++ b/test/FTFace-Test.cpp
@@ -28,8 +28,7 @@ class FTFaceTest : public CppUnit::TestCase
         void testOpenFace()
         {
             FTFace face1( BAD_FONT_FILE);
-            // This is a different error # on Mac to other platforms (1)
-            CPPUNIT_ASSERT( face1.Error() == 6);
+            CPPUNIT_ASSERT( face1.Error() == 0x06);
         
             FTFace face2( GOOD_FONT_FILE);
             CPPUNIT_ASSERT( face2.Error() == 0);        
@@ -39,7 +38,7 @@ class FTFaceTest : public CppUnit::TestCase
         void testOpenFaceFromMemory()
         {
             FTFace face1( (unsigned char*)100, 0);
-            CPPUNIT_ASSERT( face1.Error() == 0x02);        
+            CPPUNIT_ASSERT( face1.Error() == 0x02);
         
             FTFace face2( HPGCalc_pfb.dataBytes, HPGCalc_pfb.numBytes);
             CPPUNIT_ASSERT( face2.Error() == 0);        
@@ -49,7 +48,7 @@ class FTFaceTest : public CppUnit::TestCase
         void testAttachFile()
         {
             CPPUNIT_ASSERT( !testFace->Attach( TYPE1_AFM_FILE));
-            CPPUNIT_ASSERT( testFace->Error() == 7);
+            CPPUNIT_ASSERT( testFace->Error() == 0x07);
         
             FTFace test( TYPE1_FONT_FILE);
             CPPUNIT_ASSERT( test.Error() == 0);
@@ -62,7 +61,7 @@ class FTFaceTest : public CppUnit::TestCase
         void testAttachMemoryData()
         {
             CPPUNIT_ASSERT( !testFace->Attach((unsigned char*)100, 0));
-            CPPUNIT_ASSERT( testFace->Error() == 7);        
+            CPPUNIT_ASSERT( testFace->Error() == 0x07);        
         
             FTFace test( TYPE1_FONT_FILE);
             CPPUNIT_ASSERT( test.Error() == 0);
diff --git a/test/FTFont-Test.cpp b/test/FTFont-Test.cpp
index 0c36f56..52a3d06 100755
--- a/test/FTFont-Test.cpp
+++ b/test/FTFont-Test.cpp
@@ -69,8 +69,7 @@ class FTFontTest : public CppUnit::TestCase
         void testOpenFont()
         {
             TestFont badFont( BAD_FONT_FILE);
-            // This is a different error # on Mac to other platforms (1)
-            CPPUNIT_ASSERT( badFont.Error() == 6);        
+            CPPUNIT_ASSERT( badFont.Error() == 0x06);        
         
             TestFont goodFont( GOOD_FONT_FILE);
             CPPUNIT_ASSERT( goodFont.Error() == 0);        
@@ -90,14 +89,14 @@ class FTFontTest : public CppUnit::TestCase
         void testAttachFile()
         {
             testFont->Attach( TYPE1_AFM_FILE);
-            CPPUNIT_ASSERT( testFont->Error() == 7);        
+            CPPUNIT_ASSERT( testFont->Error() == 0x07);        
         }
         
         
         void testAttachData()
         {
             testFont->Attach( (unsigned char*)100, 0);
-            CPPUNIT_ASSERT( testFont->Error() == 7);        
+            CPPUNIT_ASSERT( testFont->Error() == 0x07);        
         }