diff --git a/src/foliatest.cxx b/src/foliatest.cxx index f392b8e..5d80212 100644 --- a/src/foliatest.cxx +++ b/src/foliatest.cxx @@ -1070,10 +1070,9 @@ 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 >= 218 +#if FOLIA_INT_VERSION >= 221 + assertThrow( c = node->correct( oV, cV, nV, sV, args ), DuplicateAttributeError ); +#elif 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/text_tests.cxx b/src/text_tests.cxx index b7ddfd5..30bec6b 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(){