Commit 2d44ac1e08b712946ff04f009b64e3223f80e7a8

henry 2002-12-31T04:47:18

Change size test

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/test/FTFont-Test.cpp b/test/FTFont-Test.cpp
index aec9501..1c24ee2 100755
--- a/test/FTFont-Test.cpp
+++ b/test/FTFont-Test.cpp
@@ -105,6 +105,14 @@ class FTFontTest : public CppUnit::TestCase
         
         CPPUNIT_ASSERT_DOUBLES_EQUAL(  52, testFont->Ascender(), 0.01);
         CPPUNIT_ASSERT_DOUBLES_EQUAL( -14, testFont->Descender(), 0.01);
+
+        CPPUNIT_ASSERT( testFont->FaceSize( GOOD_SIZE * 2));
+        CPPUNIT_ASSERT( testFont->Error() == 0);
+
+        CPPUNIT_ASSERT( testFont->FaceSize() == GOOD_SIZE * 2);
+
+        CPPUNIT_ASSERT_DOUBLES_EQUAL( 103, testFont->Ascender(), 0.01);
+        CPPUNIT_ASSERT_DOUBLES_EQUAL( -29, testFont->Descender(), 0.01);
     }