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

Evergreen Git git at git.evergreen-ils.org
Mon Aug 17 21:15:49 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  ff8d9d1c0fbd83a380ac4cbf4c4898d7e9cd23ea (commit)
      from  6d53ac9b3b6927dbdf25488f5d6234540f0af0fc (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 ff8d9d1c0fbd83a380ac4cbf4c4898d7e9cd23ea
Author: Liam Whalen <liam.whalen at bc.libraries.coop>
Date:   Fri Aug 14 13:25:11 2015 -0700

    LP1483509: tests for xml_famous5_to_text
    
    Signed-off-by: Liam Whalen <liam.whalen at bc.libraries.coop>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/t/xml_famous5_to_text.pg b/Open-ILS/src/sql/Pg/t/xml_famous5_to_text.pg
new file mode 100644
index 0000000..825fd6f
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/t/xml_famous5_to_text.pg
@@ -0,0 +1,131 @@
+BEGIN;
+
+SELECT plan(63);
+
+SELECT is(xml_famous5_to_text('<'), '<', 'less than simple test');
+
+SELECT isnt(xml_famous5_to_text('&lt'), '<', 'less than bad syntax');
+
+SELECT is(xml_famous5_to_text('>'), '>', 'greater than simple test');
+
+SELECT isnt(xml_famous5_to_text('&gt'), '>', 'greater than bad syntax');
+
+SELECT is(xml_famous5_to_text('''), '''', 'apostrophe simple test');
+
+SELECT isnt(xml_famous5_to_text('&apos'), '''', 'apostrohpe bad syntax');
+
+SELECT is(xml_famous5_to_text('"'), '"', 'quotation simple test');
+
+SELECT isnt(xml_famous5_to_text('&quot'), '"', 'quotation bad syntax');
+
+SELECT is(xml_famous5_to_text('&'), '&', 'ampersand simple test');
+
+SELECT isnt(xml_famous5_to_text('&amp'), '&', 'ampersand bad syntax');
+
+SELECT is(xml_famous5_to_text('< > ' " &'), '< > '' " &', 'all famous five simple test');
+
+SELECT isnt(xml_famous5_to_text('&lt > ' " &'), '< > '' " &', 'all famous five single syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt ' " &'), '< > '' " &', 'all famous five two syntax errors');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt &apos " &'), '< > '' " &', 'all famous five three syntax errors');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt &apos &quot &'), '< > '' " &', 'all famous five four syntax errors');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt &apos &quot &amp'), '< > '' " &', 'all famous five five syntax errors');
+
+SELECT isnt(xml_famous5_to_text('&lt > ' " &'), '< > '' " &', 'all famous five less than syntax error');
+
+SELECT isnt(xml_famous5_to_text('< &gt ' " &'), '< > '' " &', 'all famous five greater than syntax error');
+
+SELECT isnt(xml_famous5_to_text('< > &apos " &'), '< > '' " &', 'all famous five apostrophe syntax error');
+
+SELECT isnt(xml_famous5_to_text('< > ' &quot &'), '< > '' " &', 'all famous five quotation syntax error');
+
+SELECT isnt(xml_famous5_to_text('< > ' " &amp'), '< > '' " &', 'all famous five ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt ' " &'), '< > '' " &', 'all famous five less than + greater than syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt > &apos " &'), '< > '' " &', 'all famous five less than + apostrophe syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt > ' &quot &'), '< > '' " &', 'all famous five less than + quotation syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt > ' " &amp'), '< > '' " &', 'all famous five less than + ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('< &gt &apos " &'), '< > '' " &', 'all famous five greater than + apostrophe syntax error');
+
+SELECT isnt(xml_famous5_to_text('< &gt ' &quot &'), '< > '' " &', 'all famous five greater than + quotation syntax error');
+
+SELECT isnt(xml_famous5_to_text('< &gt ' " &amp'), '< > '' " &', 'all famous five greater than + ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('< > &apos &quot &'), '< > '' " &', 'all famous five apostrophe + quotation syntax error');
+
+SELECT isnt(xml_famous5_to_text('< > &apos " &amp'), '< > '' " &', 'all famous five apostrophe + ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('< > ' &quot &amp'), '< > '' " &', 'all famous five quotation + ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt &apos " &'), '< > '' " &', 'all famous five less than + greater than + apostrophe syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt ' &quot &'), '< > '' " &', 'all famous five less than + greater than + quotation syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt ' " &amp'), '< > '' " &', 'all famous five less than + greater than + ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('< &gt &apos &quot &'), '< > '' " &', 'all famous five greater than + apostrophe + quotation syntax error');
+
+SELECT isnt(xml_famous5_to_text('< &gt &apos " &amp'), '< > '' " &', 'all famous five greater than + apostrophe + ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('< > &apos &quot &amp'), '< > '' " &', 'all famous five apostrophe + quotation+  ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('< &gt &apos &quot &amp'), '< > '' " &', 'all famous five greater than + apostrophe + quotation + ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt > &apos &quot &amp'), '< > '' " &', 'all famous five less than + apostrophe + quotation + ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt ' &quot &amp'), '< > '' " &', 'all famous five less than + greater than + quotation + ampersand syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt &apos " &amp'), '< > '' " &', 'all famous five less than + greater than + apostrophe + quotation syntax error');
+
+SELECT isnt(xml_famous5_to_text('&lt &gt &apos &quot &'), '< > '' " &', 'all famous five less than + greater than + apostrophe + quotation syntax error');
+
+SELECT is(xml_famous5_to_text('< <'), '< <', 'two less thans simple test');
+
+SELECT is(xml_famous5_to_text('> >'), '> >', 'two greater thans simple test');
+
+SELECT is(xml_famous5_to_text('' ''), ''' ''', 'two apostrophes simple test');
+
+SELECT is(xml_famous5_to_text('" "'), '" "', 'two quotations simple test');
+
+SELECT is(xml_famous5_to_text('& &'), '& &', 'two ampersands simple test');
+
+SELECT isnt(xml_famous5_to_text('< &lt'), '< <', 'two less thans one syntax error');
+
+SELECT isnt(xml_famous5_to_text('> &gt'), '> >', 'two greater thans one syntax error');
+
+SELECT isnt(xml_famous5_to_text('' &apos'), ''' ''', 'two apostrophes one syntax error');
+
+SELECT isnt(xml_famous5_to_text('" &quot'), '" "', 'two quotations one syntax error');
+
+SELECT isnt(xml_famous5_to_text('& &amp'), '& &', 'two ampersands one syntax error');
+
+SELECT is(xml_famous5_to_text('One plus one is < one. Two is > one.  A possessive is indicated by '.  Quotation marks look like ".  Ampersands look like &.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'all famous five complex test');
+
+SELECT isnt(xml_famous5_to_text('One plus one is &lt one. Two is > one.  A possessive is indicated by '.  Quotation marks look like ".  Ampersands look like &.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'all famous five one syntax errors complex test');
+
+SELECT isnt(xml_famous5_to_text('One plus one is &lt one. Two is &gt one.  A possessive is indicated by '.  Quotation marks look like ".  Ampersands look like &.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'all famous five two syntax errors complex test');
+
+SELECT isnt(xml_famous5_to_text('One plus one is &lt one. Two is &gt one.  A possessive is indicated by &apos.  Quotation marks look like ".  Ampersands look like &.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'all famous five three syntax errors complex test');
+
+SELECT isnt(xml_famous5_to_text('One plus one is &lt one. Two is &gt one.  A possessive is indicated by &apos.  Quotation marks look like &quot.  Ampersands look like &.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'all famous five four syntax errors complex test');
+
+SELECT isnt(xml_famous5_to_text('One plus one is &lt one. Two is &gt one.  A possessive is indicated by &apos.  Quotation marks look like &quot.  Ampersands look like &amp.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'all famous five five syntax errors complex test');
+
+SELECT isnt(xml_famous5_to_text('One plus one is &lt one. Two is > one.  A possessive is indicated by '.  Quotation marks look like ".  Ampersands look like &.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'less than syntax errors complex test');
+ 
+SELECT isnt(xml_famous5_to_text('One plus one is < one. Two is &gt one.  A possessive is indicated by '.  Quotation marks look like ".  Ampersands look like &.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'greater than syntax errors complex test');
+ 
+SELECT isnt(xml_famous5_to_text('One plus one is < one. Two is > one.  A possessive is indicated by &apos.  Quotation marks look like ".  Ampersands look like &.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'apostrophe syntax errors complex test');
+ 
+SELECT isnt(xml_famous5_to_text('One plus one is < one. Two is > one.  A possessive is indicated by '.  Quotation marks look like &quot.  Ampersands look like &.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'quotation syntax errors complex test');
+ 
+SELECT isnt(xml_famous5_to_text('One plus one is < one. Two is > one.  A possessive is indicated by '.  Quotation marks look like ".  Ampersands look like &amp.'), 'One plus one is < one. Two is > one.  A possessive is indicated by ''.  Quotation marks look like ".  Ampersands look like &.', 'ampersand syntax errors complex test');
+ 
+ROLLBACK;

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list