From 9e83b59d32c27274b8387a4ceffa6256e3a8d4b4 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Thu, 10 Dec 2020 19:51:13 +0100 Subject: [PATCH] adapted two tests to comply with changes introduced by proycon/folia#88 --- configure.ac | 2 +- src/foliatest.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 547ff69..874d79c 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT([foliatest], [0.9], [lamasoftware@science.ru.nl]) +AC_INIT([foliatest], [0.10], [lamasoftware@science.ru.nl]) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_MACRO_DIR([m4]) diff --git a/src/foliatest.cxx b/src/foliatest.cxx index b9ee5e5..a3c38b1 100644 --- a/src/foliatest.cxx +++ b/src/foliatest.cxx @@ -3807,8 +3807,8 @@ void edit_test018c(){ assertEqual( s->text("larch"),"And now for something completely different." ); // 6 get one word FoliaElement *w = editDoc["example.p.1.s.1.w.8"]; - // check it's REAL text, including spaced - assertEqual( w->text("original"), " œuvre " ); + // check it's REAL text, but not including leading/trailing spaces + assertEqual( w->text("original"), "œuvre" ); // check the normalized value assertEqual( normalize_spaces(w->text("original")), "œuvre" ); // We may NOT changed te text @@ -4836,7 +4836,7 @@ void text_test15(){ ""; Document doc; assertNoThrow( doc.read_from_string( xml ) ); - assertEqual( doc["test.s"]->text(), "Dit\n is een rare test.\n "); + assertEqual( doc["test.s"]->text(), "Dit\n is een rare test."); } void text_test16(){