]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/t/xml_famous5_to_text.pg
LP1615805 No inputs after submit in patron search (AngularJS)
[working/Evergreen.git] / Open-ILS / src / sql / Pg / t / xml_famous5_to_text.pg
1 BEGIN;
2
3 SELECT plan(63);
4
5 SELECT is(xml_famous5_to_text('&lt;'), '<', 'less than simple test');
6
7 SELECT isnt(xml_famous5_to_text('&lt'), '<', 'less than bad syntax');
8
9 SELECT is(xml_famous5_to_text('&gt;'), '>', 'greater than simple test');
10
11 SELECT isnt(xml_famous5_to_text('&gt'), '>', 'greater than bad syntax');
12
13 SELECT is(xml_famous5_to_text('&apos;'), '''', 'apostrophe simple test');
14
15 SELECT isnt(xml_famous5_to_text('&apos'), '''', 'apostrohpe bad syntax');
16
17 SELECT is(xml_famous5_to_text('&quot;'), '"', 'quotation simple test');
18
19 SELECT isnt(xml_famous5_to_text('&quot'), '"', 'quotation bad syntax');
20
21 SELECT is(xml_famous5_to_text('&amp;'), '&', 'ampersand simple test');
22
23 SELECT isnt(xml_famous5_to_text('&amp'), '&', 'ampersand bad syntax');
24
25 SELECT is(xml_famous5_to_text('&lt; &gt; &apos; &quot; &amp;'), '< > '' " &', 'all famous five simple test');
26
27 SELECT isnt(xml_famous5_to_text('&lt &gt; &apos; &quot; &amp;'), '< > '' " &', 'all famous five single syntax error');
28
29 SELECT isnt(xml_famous5_to_text('&lt &gt &apos; &quot; &amp;'), '< > '' " &', 'all famous five two syntax errors');
30
31 SELECT isnt(xml_famous5_to_text('&lt &gt &apos &quot; &amp;'), '< > '' " &', 'all famous five three syntax errors');
32
33 SELECT isnt(xml_famous5_to_text('&lt &gt &apos &quot &amp;'), '< > '' " &', 'all famous five four syntax errors');
34
35 SELECT isnt(xml_famous5_to_text('&lt &gt &apos &quot &amp'), '< > '' " &', 'all famous five five syntax errors');
36
37 SELECT isnt(xml_famous5_to_text('&lt &gt; &apos; &quot; &amp;'), '< > '' " &', 'all famous five less than syntax error');
38
39 SELECT isnt(xml_famous5_to_text('&lt; &gt &apos; &quot; &amp;'), '< > '' " &', 'all famous five greater than syntax error');
40
41 SELECT isnt(xml_famous5_to_text('&lt; &gt; &apos &quot; &amp;'), '< > '' " &', 'all famous five apostrophe syntax error');
42
43 SELECT isnt(xml_famous5_to_text('&lt; &gt; &apos; &quot &amp;'), '< > '' " &', 'all famous five quotation syntax error');
44
45 SELECT isnt(xml_famous5_to_text('&lt; &gt; &apos; &quot; &amp'), '< > '' " &', 'all famous five ampersand syntax error');
46
47 SELECT isnt(xml_famous5_to_text('&lt &gt &apos; &quot; &amp;'), '< > '' " &', 'all famous five less than + greater than syntax error');
48
49 SELECT isnt(xml_famous5_to_text('&lt &gt; &apos &quot; &amp;'), '< > '' " &', 'all famous five less than + apostrophe syntax error');
50
51 SELECT isnt(xml_famous5_to_text('&lt &gt; &apos; &quot &amp;'), '< > '' " &', 'all famous five less than + quotation syntax error');
52
53 SELECT isnt(xml_famous5_to_text('&lt &gt; &apos; &quot; &amp'), '< > '' " &', 'all famous five less than + ampersand syntax error');
54
55 SELECT isnt(xml_famous5_to_text('&lt; &gt &apos &quot; &amp;'), '< > '' " &', 'all famous five greater than + apostrophe syntax error');
56
57 SELECT isnt(xml_famous5_to_text('&lt; &gt &apos; &quot &amp;'), '< > '' " &', 'all famous five greater than + quotation syntax error');
58
59 SELECT isnt(xml_famous5_to_text('&lt; &gt &apos; &quot; &amp'), '< > '' " &', 'all famous five greater than + ampersand syntax error');
60
61 SELECT isnt(xml_famous5_to_text('&lt; &gt; &apos &quot &amp;'), '< > '' " &', 'all famous five apostrophe + quotation syntax error');
62
63 SELECT isnt(xml_famous5_to_text('&lt; &gt; &apos &quot; &amp'), '< > '' " &', 'all famous five apostrophe + ampersand syntax error');
64
65 SELECT isnt(xml_famous5_to_text('&lt; &gt; &apos; &quot &amp'), '< > '' " &', 'all famous five quotation + ampersand syntax error');
66
67 SELECT isnt(xml_famous5_to_text('&lt &gt &apos &quot; &amp;'), '< > '' " &', 'all famous five less than + greater than + apostrophe syntax error');
68
69 SELECT isnt(xml_famous5_to_text('&lt &gt &apos; &quot &amp;'), '< > '' " &', 'all famous five less than + greater than + quotation syntax error');
70
71 SELECT isnt(xml_famous5_to_text('&lt &gt &apos; &quot; &amp'), '< > '' " &', 'all famous five less than + greater than + ampersand syntax error');
72
73 SELECT isnt(xml_famous5_to_text('&lt; &gt &apos &quot &amp;'), '< > '' " &', 'all famous five greater than + apostrophe + quotation syntax error');
74
75 SELECT isnt(xml_famous5_to_text('&lt; &gt &apos &quot; &amp'), '< > '' " &', 'all famous five greater than + apostrophe + ampersand syntax error');
76
77 SELECT isnt(xml_famous5_to_text('&lt; &gt; &apos &quot &amp'), '< > '' " &', 'all famous five apostrophe + quotation+  ampersand syntax error');
78
79 SELECT isnt(xml_famous5_to_text('&lt; &gt &apos &quot &amp'), '< > '' " &', 'all famous five greater than + apostrophe + quotation + ampersand syntax error');
80
81 SELECT isnt(xml_famous5_to_text('&lt &gt; &apos &quot &amp'), '< > '' " &', 'all famous five less than + apostrophe + quotation + ampersand syntax error');
82
83 SELECT isnt(xml_famous5_to_text('&lt &gt &apos; &quot &amp'), '< > '' " &', 'all famous five less than + greater than + quotation + ampersand syntax error');
84
85 SELECT isnt(xml_famous5_to_text('&lt &gt &apos &quot; &amp'), '< > '' " &', 'all famous five less than + greater than + apostrophe + quotation syntax error');
86
87 SELECT isnt(xml_famous5_to_text('&lt &gt &apos &quot &amp;'), '< > '' " &', 'all famous five less than + greater than + apostrophe + quotation syntax error');
88
89 SELECT is(xml_famous5_to_text('&lt; &lt;'), '< <', 'two less thans simple test');
90
91 SELECT is(xml_famous5_to_text('&gt; &gt;'), '> >', 'two greater thans simple test');
92
93 SELECT is(xml_famous5_to_text('&apos; &apos;'), ''' ''', 'two apostrophes simple test');
94
95 SELECT is(xml_famous5_to_text('&quot; &quot;'), '" "', 'two quotations simple test');
96
97 SELECT is(xml_famous5_to_text('&amp; &amp;'), '& &', 'two ampersands simple test');
98
99 SELECT isnt(xml_famous5_to_text('&lt; &lt'), '< <', 'two less thans one syntax error');
100
101 SELECT isnt(xml_famous5_to_text('&gt; &gt'), '> >', 'two greater thans one syntax error');
102
103 SELECT isnt(xml_famous5_to_text('&apos; &apos'), ''' ''', 'two apostrophes one syntax error');
104
105 SELECT isnt(xml_famous5_to_text('&quot; &quot'), '" "', 'two quotations one syntax error');
106
107 SELECT isnt(xml_famous5_to_text('&amp; &amp'), '& &', 'two ampersands one syntax error');
108
109 SELECT is(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 complex test');
110
111 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 one syntax errors complex test');
112
113 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 two syntax errors complex test');
114
115 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 three syntax errors complex test');
116
117 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 four syntax errors complex test');
118
119 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');
120
121 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 &.', 'less than syntax errors complex test');
122  
123 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 &.', 'greater than syntax errors complex test');
124  
125 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 &.', 'apostrophe syntax errors complex test');
126  
127 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 &.', 'quotation syntax errors complex test');
128  
129 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 &.', 'ampersand syntax errors complex test');
130  
131 ROLLBACK;