diff --git a/src/foliatest.cxx b/src/foliatest.cxx index 5ee80b7..86f8deb 100644 --- a/src/foliatest.cxx +++ b/src/foliatest.cxx @@ -121,9 +121,9 @@ void test0() { assertTrue( bla["dat"] == " ra ar" ); assertEqual ( bla["dat"] , string(" ra ar") ); assertThrow( bla = getArgs( "dit='fout' = " ), ArgsError ); -#if FOLIA_INT_VERSION >= 221 - assertThrow( bla = getArgs( "dit=fout dit=dubbel" ), ArgsError ); -#endif +// #if FOLIA_INT_VERSION >= 221 +// assertThrow( bla = getArgs( "dit=fout dit=dubbel" ), ArgsError ); +// #endif assertNoThrow( bla = getArgs( "cls='o\\'k'" ) ); assertTrue( bla["cls"] == "o'k" ); assertNoThrow( bla = getArgs( "class='o\\k'" ) ); @@ -1043,9 +1043,10 @@ void correction_test009b(){ FoliaElement *sent = new Sentence( args ); nV.push_back(sent); Correction *c; -#if FOLIA_INT_VERSION >= 221 - assertThrow( c = node->correct( oV, cV, nV, sV, args ), DuplicateAttributeError ); -#elif FOLIA_INT_VERSION >= 218 +// #if FOLIA_INT_VERSION >= 221 +// assertThrow( c = node->correct( oV, cV, nV, sV, args ), DuplicateAttributeError ); +// #elif FOLIA_INT_VERSION >= 218 +#if FOLIA_INT_VERSION >= 218 assertThrow( c = node->correct( oV, cV, nV, sV, args ), XmlError ); #else c = node->correct( oV, cV, nV, sV, args ); diff --git a/src/sanity_tests.cxx b/src/sanity_tests.cxx index 2723698..5f5aab6 100644 --- a/src/sanity_tests.cxx +++ b/src/sanity_tests.cxx @@ -2296,10 +2296,10 @@ void sanity_test141( ){ int stat = system( "diff /tmp/test141.xml tests/test141.xml.ok" ); assertMessage( "/tmp/test141.xml tests/test141.xml.ok differ!", (stat == 0) ); -#else - int stat = system( "diff /tmp/test141.xml tests/test141-221.xml.ok" ); - assertMessage( "/tmp/test141.xml tests/test141-221.xml.ok differ!", - (stat == 0) ); +// #else +// int stat = system( "diff /tmp/test141.xml tests/test141-221.xml.ok" ); +// assertMessage( "/tmp/test141.xml tests/test141-221.xml.ok differ!", +// (stat == 0) ); #endif } diff --git a/src/text_tests.cxx b/src/text_tests.cxx index 299702e..b7ddfd5 100644 --- a/src/text_tests.cxx +++ b/src/text_tests.cxx @@ -1141,15 +1141,15 @@ void text_test13f(){ doc.setmode("strip"); assertEqual( doc.getmode(), "mode=strip,checktext,autodeclare," ); -#if FOLIA_INT_VERSION < 221 + //#if FOLIA_INT_VERSION < 221 assertEqual( doc.xmlstring(), "\n" "De site staat online . Desitestaatonline.\n" ); -#else - assertEqual( doc.xmlstring(), - "\n" - "De site staat online . Desitestaatonline.\n" ); -#endif +// #else +// assertEqual( doc.xmlstring(), +// "\n" +// "De site staat online . Desitestaatonline.\n" ); +// #endif } void text_test14(){