]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/t/regress/lp1243023_decoded_xpath_extracts.pg
LP#1470957: adjust a previous regression test
[Evergreen.git] / Open-ILS / src / sql / Pg / t / regress / lp1243023_decoded_xpath_extracts.pg
1 BEGIN;
2
3 SELECT plan(4);
4
5 SELECT is((oils_xpath('//*', '<field attr="&quot;quoted&quot;">this &amp; that &lt; &gt;</field>'))[1], '<field attr="&quot;quoted&quot;">this &amp; that &lt; &gt;</field>', 'oils_xpath - encoded node extracts');
6 SELECT is((oils_xpath('//text()', '<field attr="&quot;quoted&quot;">this &amp; that &lt; &gt;</field>'))[1], 'this & that < >', 'oils_xpath - decoded text() extracts');
7 SELECT is((oils_xpath('//*/@attr', '<field attr="&quot;quoted&quot;">this &amp; that &lt; &gt;</field>'))[1], '"quoted"', 'oils_xpath - decoded &quot; in attribute extracts');
8 SELECT is((oils_xpath('//*/@attr', E'<field attr=\'&apos;quoted&apos;\'>this &amp; that &lt; &gt;</field>'))[1], E'\'quoted\'', 'oils_xpath - decoded &apos; in attribute extracts');
9
10 ROLLBACK;