From e5c1e1944b605b84a1c65f0608d2156b49ae52af Mon Sep 17 00:00:00 2001 From: Peter Stadler Date: Mon, 24 Jun 2024 08:34:37 +0200 Subject: [PATCH] update tests --- testing/xqsuite/biblio-tests.xqm | 3 +++ testing/xqsuite/run-unit-tests.xql | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/testing/xqsuite/biblio-tests.xqm b/testing/xqsuite/biblio-tests.xqm index 12d79c1d2..7ec26853a 100644 --- a/testing/xqsuite/biblio-tests.xqm +++ b/testing/xqsuite/biblio-tests.xqm @@ -71,6 +71,8 @@ declare declare %test:args('A111057') %test:assertXPath("$result//xhtml:span[@class='idno_DOI'] and $result//xhtml:span[@class='title'] and $result//xhtml:span[@class='author'] and $result//xhtml:span[@class='placeNYear']") + %test:args('A112745') %test:assertEquals("Ferdinand Zehentreiter, „Dem folgt deutscher Gesang“. Adornos Physiognomik des Freischütz (Caprices, Bd. 1), Hofheim am Taunus 2019") + %test:args('A110124') %test:assertEquals("Joachim Veit, Eveline Bartlitz und Dagmar Beck (Hg.), „...die Hoffnung muß das Beste thun.“ Die Emser Briefe Carl Maria von Webers an seine Frau, München 2003") function bt:test-printBookCitation($a as xs:string) as element() { let $doc := crud:doc($a) return @@ -110,6 +112,7 @@ declare declare %test:args('A113081') %test:assertXPath("$result//xhtml:span[@class='idno_DOI'] and $result//xhtml:span[@class='title'] and $result//xhtml:span[@class='author'] and $result//xhtml:span[@class='collectionTitle'] and $result//xhtml:span[@class='editor'] and $result//xhtml:span[@class='placeNYear'] and $result//xhtml:span[@class='seriesTitle']") + %test:args('A110779') %test:assertEquals("Joachim Veit, Zum Formproblem in den Kopfsätzen der Sinfonien Carl Maria von Webers, in: Festschrift Arno Forchert zum 60. Gebrutstag, hg. von Gerhard Allroggen und Detlef Altenburg, Kassel 1986, S. 184–199") function bt:test-printIncollectionCitation($a as xs:string) as element() { let $doc := crud:doc($a) return diff --git a/testing/xqsuite/run-unit-tests.xql b/testing/xqsuite/run-unit-tests.xql index 2fb9af612..1b61104b7 100644 --- a/testing/xqsuite/run-unit-tests.xql +++ b/testing/xqsuite/run-unit-tests.xql @@ -3,11 +3,7 @@ xquery version "3.1"; (: the following line must be added to each of the modules that include unit tests :) import module namespace test="http://exist-db.org/xquery/xqsuite" at "resource:org/exist/xquery/lib/xqsuite/xqsuite.xql"; -(:import module namespace wust="http://xquery.weber-gesamtausgabe.de/modules/wega-util-shared-tests" at "wega-util-shared-tests.xqm"; -import module namespace dt="http://xquery.weber-gesamtausgabe.de/modules/date-tests" at "date-tests.xqm"; -import module namespace st="http://xquery.weber-gesamtausgabe.de/modules/str-tests" at "str-tests.xqm"; -import module namespace mt="http://xquery.weber-gesamtausgabe.de/modules/math-tests" at "math-tests.xqm"; -import module namespace geot="http://xquery.weber-gesamtausgabe.de/modules/geo-tests" at "geo-tests.xqm";:) +import module namespace bt="http://weber-gesamtausgabe.de/xqsuite/biblio-tests" at "biblio-tests.xqm"; (: the test:suite() function will run all the test-annotated functions in the module whose namespace URI you provide :) test:suite((