From 120b99b1cb02f153ec6f4071a8071ac08cb9d074 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 10 May 2018 16:15:20 +0200 Subject: Add test for writing form feeds in Turtle --- tests/good/manifest.nt | 42 ++++++++++++++++++++++++------------------ tests/good/manifest.ttl | 7 +++++++ tests/good/test-form-feed.nt | 3 +++ tests/good/test-form-feed.ttl | 5 +++++ 4 files changed, 39 insertions(+), 18 deletions(-) create mode 100644 tests/good/test-form-feed.nt create mode 100644 tests/good/test-form-feed.ttl (limited to 'tests') diff --git a/tests/good/manifest.nt b/tests/good/manifest.nt index f39d21c1..ed9bcee0 100644 --- a/tests/good/manifest.nt +++ b/tests/good/manifest.nt @@ -53,40 +53,42 @@ _:b25 _:b26 . _:b26 . _:b26 _:b27 . -_:b27 . +_:b27 . _:b27 _:b28 . -_:b28 . +_:b28 . _:b28 _:b29 . -_:b29 . +_:b29 . _:b29 _:b30 . -_:b30 . +_:b30 . _:b30 _:b31 . -_:b31 . +_:b31 . _:b31 _:b32 . -_:b32 . +_:b32 . _:b32 _:b33 . -_:b33 . +_:b33 . _:b33 _:b34 . -_:b34 . +_:b34 . _:b34 _:b35 . -_:b35 . +_:b35 . _:b35 _:b36 . -_:b36 . +_:b36 . _:b36 _:b37 . -_:b37 . +_:b37 . _:b37 _:b38 . -_:b38 . +_:b38 . _:b38 _:b39 . -_:b39 . +_:b39 . _:b39 _:b40 . -_:b40 . +_:b40 . _:b40 _:b41 . -_:b41 . +_:b41 . _:b41 _:b42 . -_:b42 . +_:b42 . _:b42 _:b43 . -_:b43 . -_:b43 . +_:b43 . +_:b43 _:b44 . +_:b44 . +_:b44 . . "test-14" . . @@ -190,6 +192,10 @@ _:b43 "test-ext-namedblank-prefix" . . . + . + "test-form-feed" . + . + . . "test-id" . . diff --git a/tests/good/manifest.ttl b/tests/good/manifest.ttl index e3299aad..8bca9738 100644 --- a/tests/good/manifest.ttl +++ b/tests/good/manifest.ttl @@ -33,6 +33,7 @@ <#test-escapes> <#test-ext-namedblank-iri> <#test-ext-namedblank-prefix> + <#test-form-feed> <#test-id> <#test-lang> <#test-list-in-blank> @@ -207,6 +208,12 @@ mf:action ; mf:result . +<#test-form-feed> + rdf:type rdft:TestTurtleEval ; + mf:name "test-form-feed" ; + mf:action ; + mf:result . + <#test-id> rdf:type rdft:TestTurtleEval ; mf:name "test-id" ; diff --git a/tests/good/test-form-feed.nt b/tests/good/test-form-feed.nt new file mode 100644 index 00000000..1614ca5b --- /dev/null +++ b/tests/good/test-form-feed.nt @@ -0,0 +1,3 @@ + "\u000C" . + "\u000C" . + "\n\u000C\n" . diff --git a/tests/good/test-form-feed.ttl b/tests/good/test-form-feed.ttl new file mode 100644 index 00000000..4929259b --- /dev/null +++ b/tests/good/test-form-feed.ttl @@ -0,0 +1,5 @@ + "\u000C" . + " " . + """ + +""" . -- cgit v1.2.1