[open-ils-commits] [GIT] Evergreen ILS branch master updated. 7fec477f235fe5665b75d08244e9dccd1b535c25

Evergreen Git git at git.evergreen-ils.org
Mon Aug 17 21:32:00 EDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  7fec477f235fe5665b75d08244e9dccd1b535c25 (commit)
      from  ff8d9d1c0fbd83a380ac4cbf4c4898d7e9cd23ea (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7fec477f235fe5665b75d08244e9dccd1b535c25
Author: Bill Erickson <berickxx at gmail.com>
Date:   Fri Aug 14 12:02:54 2015 -0400

    LP#483502 PGTAP test for evergreen.xml_escape(TEXT)
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/t/xml_escape.pg b/Open-ILS/src/sql/Pg/t/xml_escape.pg
new file mode 100644
index 0000000..5d2c28d
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/t/xml_escape.pg
@@ -0,0 +1,39 @@
+
+BEGIN;
+
+-- Plan the tests.
+SELECT plan(5);
+
+SELECT is(
+    evergreen.xml_escape('A Song of Ice & Fire'),
+    'A Song of Ice & Fire',
+    'XML-Escape ampersand'
+);
+
+SELECT is(
+    evergreen.xml_escape('A Song of Rice and <<< Fire'),
+    'A Song of Rice and <<< Fire',
+    'XML-Escape less-than'
+);
+
+SELECT is(
+    evergreen.xml_escape('>A Song of Mice and >>> Fire'),
+    '>A Song of Mice and >>> Fire',
+    'XML-Escape greater-than'
+);
+
+SELECT is(
+    evergreen.xml_escape('<A> Song of Vice &&& <<Fire'),
+    '<A> Song of Vice &&& <<Fire',
+    'XML-Escape mixed'
+);
+
+SELECT is(
+    evergreen.xml_escape('åbçdéñœöîøæÇıÂÅÍÎÏÔÔÒÚÆŒè'), 
+    'åbçdéñœöîøæÇıÂÅÍÎÏÔÔÒÚÆŒè',
+    'XML-Escape no changes'
+);
+
+-- Finish the tests and clean up.
+SELECT * FROM finish();
+ROLLBACK;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/sql/Pg/t/xml_escape.pg |   39 +++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)
 create mode 100644 Open-ILS/src/sql/Pg/t/xml_escape.pg


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list