[sword-cvs] sword/tests/cppunit url_test.cpp,1.1,1.2

sword at www.crosswire.org sword at www.crosswire.org
Sat Jul 17 09:28:06 MST 2004


Committed by: joachim

Update of /cvs/core/sword/tests/cppunit
In directory www:/tmp/cvs-serv31887/tests/cppunit

Modified Files:
	url_test.cpp 
Log Message:
test case fixes

Index: url_test.cpp
===================================================================
RCS file: /cvs/core/sword/tests/cppunit/url_test.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- url_test.cpp	15 Jul 2004 13:10:33 -0000	1.1
+++ url_test.cpp	17 Jul 2004 16:28:04 -0000	1.2
@@ -34,7 +34,7 @@
 	{
 		CPPUNIT_ASSERT( !strcmp(m_url1->getProtocol(), "http") );
 		CPPUNIT_ASSERT( !strcmp(m_url2->getProtocol(), "ftp") );
-		CPPUNIT_ASSERT( strlen( m_url3->getProtocol() ) == 0 );
+		CPPUNIT_ASSERT( m_url3->getProtocol() && strlen( m_url3->getProtocol() ) == 0 );
 	}
 	
 	void testHostName()
@@ -70,7 +70,6 @@
 	void testParameterValue()
 	{	
  		CPPUNIT_ASSERT( !strcmp(m_url1->getParamterValue("page"), "help") );
-		
 		CPPUNIT_ASSERT( !strcmp(m_url1->getParamterValue("user"), "foo") );
 		CPPUNIT_ASSERT( !strcmp(m_url1->getParamterValue("name"), "bar") );
 		
@@ -78,7 +77,7 @@
 		CPPUNIT_ASSERT( !strcmp(m_url2->getParamterValue("user"), "foo") );
 		CPPUNIT_ASSERT( !strcmp(m_url2->getParamterValue("name"), "bar") );
 		
-		CPPUNIT_ASSERT( strlen(m_url3->getParamterValue("page")) == 0 );
+		CPPUNIT_ASSERT( m_url3->getParamterValue("page") && strlen(m_url3->getParamterValue("page")) == 0 );
 	}	
 };
 



More information about the sword-cvs mailing list