summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2014-11-01 20:39:28 -0700
committerDave Beckett <dave@dajobe.org>2014-11-01 20:39:28 -0700
commit9c751a94647a871311d535972acd0c3a33a6f973 (patch)
treea1aa2314818a5238c9e59d7fae0693cd66e5b260 /tests
parent8240fa96eb158b289228c44135857ffc8122e203 (diff)
downloadraptor-9c751a94647a871311d535972acd0c3a33a6f973.tar.gz
Add ntriples test bug-577 for URI escaping
Diffstat (limited to 'tests')
-rw-r--r--tests/ntriples/Makefile.am6
-rw-r--r--tests/ntriples/bug-577.nt38
-rw-r--r--tests/ntriples/bug-577.out37
3 files changed, 79 insertions, 2 deletions
diff --git a/tests/ntriples/Makefile.am b/tests/ntriples/Makefile.am
index 15b34cf8..93108659 100644
--- a/tests/ntriples/Makefile.am
+++ b/tests/ntriples/Makefile.am
@@ -27,7 +27,8 @@ nt2013-ex2.nt \
nt2013-ex3.nt \
nt2013-ex4.nt \
bug-562.nt \
-bug-574.nt
+bug-574.nt \
+bug-577.nt
NT_OUT_FILES = test.out \
nt2013-ex1.out \
@@ -35,7 +36,8 @@ nt2013-ex2.out \
nt2013-ex3.out \
nt2013-ex4.out \
bug-562.out \
-bug-574.out
+bug-574.out \
+bug-577.out
NT_BAD_TEST_FILES=bad-00.nt bad-02.nt bad-03.nt bad-04.nt \
bad-05.nt bad-06.nt bad-07.nt
diff --git a/tests/ntriples/bug-577.nt b/tests/ntriples/bug-577.nt
new file mode 100644
index 00000000..2e5495ec
--- /dev/null
+++ b/tests/ntriples/bug-577.nt
@@ -0,0 +1,38 @@
+<http://example.org/test> <http://example.org/escape-\u0001> "escape for 1" .
+<http://example.org/test> <http://example.org/escape-\u0002> "escape for 2" .
+<http://example.org/test> <http://example.org/escape-\u0003> "escape for 3" .
+<http://example.org/test> <http://example.org/escape-\u0004> "escape for 4" .
+<http://example.org/test> <http://example.org/escape-\u0005> "escape for 5" .
+<http://example.org/test> <http://example.org/escape-\u0006> "escape for 6" .
+<http://example.org/test> <http://example.org/escape-\u0007> "escape for 7" .
+<http://example.org/test> <http://example.org/escape-\u0008> "escape for 8" .
+<http://example.org/test> <http://example.org/escape-\u0009> "escape for 9" .
+<http://example.org/test> <http://example.org/escape-\u000A> "escape for 10" .
+<http://example.org/test> <http://example.org/escape-\u000B> "escape for 11" .
+<http://example.org/test> <http://example.org/escape-\u000C> "escape for 12" .
+<http://example.org/test> <http://example.org/escape-\u000D> "escape for 13" .
+<http://example.org/test> <http://example.org/escape-\u000E> "escape for 14" .
+<http://example.org/test> <http://example.org/escape-\u000F> "escape for 15" .
+<http://example.org/test> <http://example.org/escape-\u0010> "escape for 16" .
+<http://example.org/test> <http://example.org/escape-\u0011> "escape for 17" .
+<http://example.org/test> <http://example.org/escape-\u0012> "escape for 18" .
+<http://example.org/test> <http://example.org/escape-\u0013> "escape for 19" .
+<http://example.org/test> <http://example.org/escape-\u0014> "escape for 20" .
+<http://example.org/test> <http://example.org/escape-\u0015> "escape for 21" .
+<http://example.org/test> <http://example.org/escape-\u0016> "escape for 22" .
+<http://example.org/test> <http://example.org/escape-\u0017> "escape for 23" .
+<http://example.org/test> <http://example.org/escape-\u0018> "escape for 24" .
+<http://example.org/test> <http://example.org/escape-\u0019> "escape for 25" .
+<http://example.org/test> <http://example.org/escape-\u001A> "escape for 26" .
+<http://example.org/test> <http://example.org/escape-\u001B> "escape for 27" .
+<http://example.org/test> <http://example.org/escape-\u001C> "escape for 28" .
+<http://example.org/test> <http://example.org/escape-\u001D> "escape for 29" .
+<http://example.org/test> <http://example.org/escape-\u001E> "escape for 30" .
+<http://example.org/test> <http://example.org/escape-\u001F> "escape for 31" .
+
+<http://example.org/test> <http://example.org/escape-\u007B> "escape for 123" .
+<http://example.org/test> <http://example.org/escape-\u007D> "escape for 125" .
+<http://example.org/test> <http://example.org/escape-\u007C> "escape for 124" .
+<http://example.org/test> <http://example.org/escape-\u005E> "escape for 94" .
+<http://example.org/test> <http://example.org/escape-\u0060> "escape for 96" .
+<http://example.org/test> <http://example.org/escape-\u005C> "escape for 92" .
diff --git a/tests/ntriples/bug-577.out b/tests/ntriples/bug-577.out
new file mode 100644
index 00000000..5789e3bd
--- /dev/null
+++ b/tests/ntriples/bug-577.out
@@ -0,0 +1,37 @@
+<http://example.org/test> <http://example.org/escape-\u0001> "escape for 1" .
+<http://example.org/test> <http://example.org/escape-\u0002> "escape for 2" .
+<http://example.org/test> <http://example.org/escape-\u0003> "escape for 3" .
+<http://example.org/test> <http://example.org/escape-\u0004> "escape for 4" .
+<http://example.org/test> <http://example.org/escape-\u0005> "escape for 5" .
+<http://example.org/test> <http://example.org/escape-\u0006> "escape for 6" .
+<http://example.org/test> <http://example.org/escape-\u0007> "escape for 7" .
+<http://example.org/test> <http://example.org/escape-\u0008> "escape for 8" .
+<http://example.org/test> <http://example.org/escape-\u0009> "escape for 9" .
+<http://example.org/test> <http://example.org/escape-\u000A> "escape for 10" .
+<http://example.org/test> <http://example.org/escape-\u000B> "escape for 11" .
+<http://example.org/test> <http://example.org/escape-\u000C> "escape for 12" .
+<http://example.org/test> <http://example.org/escape-\u000D> "escape for 13" .
+<http://example.org/test> <http://example.org/escape-\u000E> "escape for 14" .
+<http://example.org/test> <http://example.org/escape-\u000F> "escape for 15" .
+<http://example.org/test> <http://example.org/escape-\u0010> "escape for 16" .
+<http://example.org/test> <http://example.org/escape-\u0011> "escape for 17" .
+<http://example.org/test> <http://example.org/escape-\u0012> "escape for 18" .
+<http://example.org/test> <http://example.org/escape-\u0013> "escape for 19" .
+<http://example.org/test> <http://example.org/escape-\u0014> "escape for 20" .
+<http://example.org/test> <http://example.org/escape-\u0015> "escape for 21" .
+<http://example.org/test> <http://example.org/escape-\u0016> "escape for 22" .
+<http://example.org/test> <http://example.org/escape-\u0017> "escape for 23" .
+<http://example.org/test> <http://example.org/escape-\u0018> "escape for 24" .
+<http://example.org/test> <http://example.org/escape-\u0019> "escape for 25" .
+<http://example.org/test> <http://example.org/escape-\u001A> "escape for 26" .
+<http://example.org/test> <http://example.org/escape-\u001B> "escape for 27" .
+<http://example.org/test> <http://example.org/escape-\u001C> "escape for 28" .
+<http://example.org/test> <http://example.org/escape-\u001D> "escape for 29" .
+<http://example.org/test> <http://example.org/escape-\u001E> "escape for 30" .
+<http://example.org/test> <http://example.org/escape-\u001F> "escape for 31" .
+<http://example.org/test> <http://example.org/escape-\u007B> "escape for 123" .
+<http://example.org/test> <http://example.org/escape-\u007D> "escape for 125" .
+<http://example.org/test> <http://example.org/escape-\u007C> "escape for 124" .
+<http://example.org/test> <http://example.org/escape-\u005E> "escape for 94" .
+<http://example.org/test> <http://example.org/escape-\u0060> "escape for 96" .
+<http://example.org/test> <http://example.org/escape-\\> "escape for 92" .