From c3004e55060d5d07e8280afaa29bd87a55e34279 Mon Sep 17 00:00:00 2001 From: galtm <40716346+galtm@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:29:32 -0400 Subject: [PATCH] Tweak code for Part 2 of "Ignoring Code Comments During XSpec Testing" --- src/helper-comments/README.md | 6 +- .../helper-remove-comments-xq.xspec | 4 +- .../helper-remove-comments.xqm | 60 ++++++++++--------- .../helper-remove-comments.xsl | 7 ++- src/helper-comments/test-target.xqm | 6 +- 5 files changed, 45 insertions(+), 38 deletions(-) diff --git a/src/helper-comments/README.md b/src/helper-comments/README.md index 35f8b8c..e963ca7 100644 --- a/src/helper-comments/README.md +++ b/src/helper-comments/README.md @@ -13,5 +13,7 @@ Example files for XQuery: - `helper-remove-comments-xq.xspec` -#### Link to Topic -[Ignoring Code Comments During XSpec Testing](https://medium.com/@xspectacles/ignoring-code-comments-during-xspec-testing-a460f35a25bb) +#### Links to Topics + +- [Ignoring Code Comments During XSpec Testing, Part 1](https://medium.com/@xspectacles/ignoring-code-comments-during-xspec-testing-a460f35a25bb) +- [Ignoring Code Comments During XSpec Testing, Part 2](https://medium.com/@xspectacles/ignoring-code-comments-during-xspec-testing-part-2-8266ee8ceccc) diff --git a/src/helper-comments/helper-remove-comments-xq.xspec b/src/helper-comments/helper-remove-comments-xq.xspec index a579c3d..c419454 100644 --- a/src/helper-comments/helper-remove-comments-xq.xspec +++ b/src/helper-comments/helper-remove-comments-xq.xspec @@ -5,8 +5,8 @@ xmlns:x="http://www.jenitennison.com/xslt/xspec"> - - + + diff --git a/src/helper-comments/test-target.xqm b/src/helper-comments/test-target.xqm index 5d8dd3d..f63b1c9 100644 --- a/src/helper-comments/test-target.xqm +++ b/src/helper-comments/test-target.xqm @@ -1,9 +1,9 @@ -xquery version "3.1"; +xquery version "1.0"; module namespace rpt = "urn:x-xspectacles:functions:report"; (: - Sample Code for "Ignoring Code Comments During XSpec Testing" - https://medium.com/@xspectacles/ignoring-code-comments-during-xspec-testing-a460f35a25bb + Sample Code for "Ignoring Code Comments During XSpec Testing, Part 2" + https://medium.com/@xspectacles/ignoring-code-comments-during-xspec-testing-part-2-8266ee8ceccc :) declare function rpt:report(