Skip to content

Commit

Permalink
fix some merge problems
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Dec 5, 2024
1 parent f0d9020 commit fb2e8d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
7 changes: 3 additions & 4 deletions src/foliatest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
12 changes: 6 additions & 6 deletions src/text_tests.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<FoLiA xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://ilk.uvt.nl/folia\" xml:id=\"example\" generator=\"\" version=\"\"><metadata type=\"native\"><annotations><text-annotation set=\"https://raw.githubusercontent.com/proycon/folia/master/setdefinitions/text.foliaset.ttl\"/></annotations></metadata><text xml:id=\"example.text.1\"><s xml:id=\"example.s.1\"><t>De site staat online . </t><w xml:id=\"example.s.1.w.1\"><t>De</t></w><w xml:id=\"example.s.1.w.2\"><t>site</t></w><w xml:id=\"example.s.1.w.3\"><t>staat</t></w><w xml:id=\"example.s.1.w.4\"><t>online</t></w><w xml:id=\"example.s.1.w.5\"><t>.</t></w></s></text></FoLiA>\n" );
// #else
// assertEqual( doc.xmlstring(),
// "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
// "<FoLiA xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://ilk.uvt.nl/folia\" xml:id=\"example\"><metadata type=\"native\"><annotations><text-annotation set=\"https://raw.githubusercontent.com/proycon/folia/master/setdefinitions/text.foliaset.ttl\"/></annotations></metadata><text xml:id=\"example.text.1\"><s xml:id=\"example.s.1\"><t>De site staat online . </t><w xml:id=\"example.s.1.w.1\"><t>De</t></w><w xml:id=\"example.s.1.w.2\"><t>site</t></w><w xml:id=\"example.s.1.w.3\"><t>staat</t></w><w xml:id=\"example.s.1.w.4\"><t>online</t></w><w xml:id=\"example.s.1.w.5\"><t>.</t></w></s></text></FoLiA>\n" );
// #endif
#else
assertEqual( doc.xmlstring(),
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<FoLiA xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://ilk.uvt.nl/folia\" xml:id=\"example\"><metadata type=\"native\"><annotations><text-annotation set=\"https://raw.githubusercontent.com/proycon/folia/master/setdefinitions/text.foliaset.ttl\"/></annotations></metadata><text xml:id=\"example.text.1\"><s xml:id=\"example.s.1\"><t>De site staat online . </t><w xml:id=\"example.s.1.w.1\"><t>De</t></w><w xml:id=\"example.s.1.w.2\"><t>site</t></w><w xml:id=\"example.s.1.w.3\"><t>staat</t></w><w xml:id=\"example.s.1.w.4\"><t>online</t></w><w xml:id=\"example.s.1.w.5\"><t>.</t></w></s></text></FoLiA>\n" );
#endif
}

void text_test14(){
Expand Down

0 comments on commit fb2e8d7

Please sign in to comment.