From 09c4bb6a3031d2951ff3d285936a91a4f87dca0f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 30 Mar 2013 16:37:21 +0000 Subject: Add more tests from the new W3C Turtle test suite. Support crazy escaped NULL characters in literals. Fix incorrect round-trip serialization test command. git-svn-id: http://svn.drobilla.net/serd/trunk@446 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- tests/tests-ttl/LITERAL1_all_controls.nt | 1 + tests/tests-ttl/LITERAL1_all_controls.ttl | Bin 0 -> 77 bytes tests/tests-ttl/LITERAL1_all_controls.ttl.thru | 0 tests/tests-ttl/LITERAL1_all_punctuation.nt | 1 + tests/tests-ttl/LITERAL1_all_punctuation.ttl | 1 + tests/tests-ttl/manifest.ttl | 16 ++++++++++++++++ 6 files changed, 19 insertions(+) create mode 100644 tests/tests-ttl/LITERAL1_all_controls.nt create mode 100644 tests/tests-ttl/LITERAL1_all_controls.ttl create mode 100644 tests/tests-ttl/LITERAL1_all_controls.ttl.thru create mode 100644 tests/tests-ttl/LITERAL1_all_punctuation.nt create mode 100644 tests/tests-ttl/LITERAL1_all_punctuation.ttl (limited to 'tests') diff --git a/tests/tests-ttl/LITERAL1_all_controls.nt b/tests/tests-ttl/LITERAL1_all_controls.nt new file mode 100644 index 00000000..91c8af14 --- /dev/null +++ b/tests/tests-ttl/LITERAL1_all_controls.nt @@ -0,0 +1 @@ + "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" . diff --git a/tests/tests-ttl/LITERAL1_all_controls.ttl b/tests/tests-ttl/LITERAL1_all_controls.ttl new file mode 100644 index 00000000..dbf3721c Binary files /dev/null and b/tests/tests-ttl/LITERAL1_all_controls.ttl differ diff --git a/tests/tests-ttl/LITERAL1_all_controls.ttl.thru b/tests/tests-ttl/LITERAL1_all_controls.ttl.thru new file mode 100644 index 00000000..e69de29b diff --git a/tests/tests-ttl/LITERAL1_all_punctuation.nt b/tests/tests-ttl/LITERAL1_all_punctuation.nt new file mode 100644 index 00000000..c25d818f --- /dev/null +++ b/tests/tests-ttl/LITERAL1_all_punctuation.nt @@ -0,0 +1 @@ + " !\"#$%&():;<=>?@[]^_`{|}~" . diff --git a/tests/tests-ttl/LITERAL1_all_punctuation.ttl b/tests/tests-ttl/LITERAL1_all_punctuation.ttl new file mode 100644 index 00000000..7b1d9e54 --- /dev/null +++ b/tests/tests-ttl/LITERAL1_all_punctuation.ttl @@ -0,0 +1 @@ + ' !"#$%&():;<=>?@[]^_`{|}~' . diff --git a/tests/tests-ttl/manifest.ttl b/tests/tests-ttl/manifest.ttl index 7b9a5f4b..d38ed41d 100644 --- a/tests/tests-ttl/manifest.ttl +++ b/tests/tests-ttl/manifest.ttl @@ -66,6 +66,8 @@ <#first> <#last> <#LITERAL1> + <#LITERAL1_all_controls> + <#LITERAL1_all_punctuation> <#LITERAL_LONG1> <#LITERAL_LONG1_with_1_squote> <#LITERAL_LONG1_with_2_squotes> @@ -565,6 +567,20 @@ mf:result ; . +<#LITERAL1_all_controls> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL1_all_controls" ; + rdfs:comment "LITERAL1_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ; + mf:action ; + mf:result ; + . + +<#LITERAL1_all_punctuation> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL1_all_punctuation" ; + rdfs:comment "LITERAL1_all_punctuation '!\"#$%&()...'" ; + mf:action ; + mf:result ; + . + <#LITERAL_LONG1> rdf:type rdft:TestTurtleEval ; mf:name "LITERAL_LONG1" ; rdfs:comment "LITERAL_LONG1 '''x'''" ; -- cgit v1.2.1