From: stephan b. <sg...@us...> - 2004-12-25 18:59:45
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17918/src/System Modified Files: testMime.cpp Log Message: Added test of MimeType(string) ctor. Index: testMime.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/System/testMime.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- testMime.cpp 24 Dec 2004 19:19:38 -0000 1.4 +++ testMime.cpp 25 Dec 2004 18:59:37 -0000 1.5 @@ -15,8 +15,10 @@ using P::System::MimeTypeDb; MimeType m1( "text", "plain" ); - MimeType m2( "application", "html" ); -#define MCMP(M1,OP,M2) CERR << M1.mimeType() << " "<<# OP<<" "<< M2.mimeType() << " == " << (M1 OP M2)<<"\n"; + MimeType m2( "application/html" ); + + +#define MCMP(M1,OP,M2) CERR << M1.mimeType() << " "<<# OP<<" "<< M2 << " == " << (M1 OP M2)<<"\n"; #define MCMP2(M1,M2) MCMP(M1,<,M2); MCMP(M2,<,M1); MCMP(M1,==,M2); MCMP2(m1,m2); MCMP2(MimeType( "application", "x" ),MimeType( "application", "x" )); |