Skip to content

Commit

Permalink
added test for trailing space (proycon/folia#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Mar 24, 2021
1 parent ee6d2f4 commit 4d1fb3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/foliatest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6537,6 +6537,11 @@ void whitespace_test013(){
assertTrue( p->text() == "Es entspricht einerseits nicht den Erwartungen derjenigen, welche in betreff der Lage der Landarbeiter nur solche" );
}

void whitespace_test014(){
startTestSerie(" Whitespace - Maintain trailing space " );
FoliaElement *p = whitespaceDoc["test.p.14"];
assertTrue( p->text() == "Terwijl hij den gemiddelden prijs van een karaat geslepen op £ 8 stelde, den prijs van een steen van 2 karaat op 22 X 8 = £ 32" );
}


void usage(){
Expand Down Expand Up @@ -6862,6 +6867,7 @@ int main( int argc, char* argv[] ){
whitespace_test011();
whitespace_test012();
whitespace_test013();
whitespace_test014();
#endif
if ( !is_setup ){
assertMessage( "FOLIAPATH not set?", false );
Expand Down

0 comments on commit 4d1fb3d

Please sign in to comment.