Commit de544bc9b6821f78f4b4cda57be66439243b531f

henry 2002-12-20T22:21:50

Added TestError()

diff --git a/test/FTLibrary-Test.cpp b/test/FTLibrary-Test.cpp
index 5c0c0f1..74f77f5 100755
--- a/test/FTLibrary-Test.cpp
+++ b/test/FTLibrary-Test.cpp
@@ -9,6 +9,7 @@ class FTLibraryTest : public CppUnit::TestCase
 {
         CPPUNIT_TEST_SUITE( FTLibraryTest);
             CPPUNIT_TEST( testConstructor);
+            CPPUNIT_TEST( testError);
         CPPUNIT_TEST_SUITE_END();
         
     public:
@@ -23,6 +24,15 @@ class FTLibraryTest : public CppUnit::TestCase
             FTLibrary& libraryTwo = FTLibrary::Instance();
             
             CPPUNIT_ASSERT( &libraryOne == &libraryTwo);
+            CPPUNIT_ASSERT( &libraryOne == &FTLibrary::Instance());
+        }
+        
+        
+        void testError()
+        {
+            FTLibrary& library = FTLibrary::Instance();
+            
+            CPPUNIT_ASSERT( library.Error() == 0);
         }