diff options
author | David Robillard <d@drobilla.net> | 2013-03-30 16:37:21 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-03-30 16:37:21 +0000 |
commit | 09c4bb6a3031d2951ff3d285936a91a4f87dca0f (patch) | |
tree | 32b72c0618d2aca379ab8b00cf6bd687e53b0ab0 /tests/tests-ttl | |
parent | 99a57ab1bc5878001f639d1cbfc4ab323848f884 (diff) | |
download | serd-09c4bb6a3031d2951ff3d285936a91a4f87dca0f.tar.gz serd-09c4bb6a3031d2951ff3d285936a91a4f87dca0f.tar.bz2 serd-09c4bb6a3031d2951ff3d285936a91a4f87dca0f.zip |
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
Diffstat (limited to 'tests/tests-ttl')
-rw-r--r-- | tests/tests-ttl/LITERAL1_all_controls.nt | 1 | ||||
-rw-r--r-- | tests/tests-ttl/LITERAL1_all_controls.ttl | bin | 0 -> 77 bytes | |||
-rw-r--r-- | tests/tests-ttl/LITERAL1_all_controls.ttl.thru | 0 | ||||
-rw-r--r-- | tests/tests-ttl/LITERAL1_all_punctuation.nt | 1 | ||||
-rw-r--r-- | tests/tests-ttl/LITERAL1_all_punctuation.ttl | 1 | ||||
-rw-r--r-- | tests/tests-ttl/manifest.ttl | 16 |
6 files changed, 19 insertions, 0 deletions
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 @@ +<http://a.example/s> <http://a.example/p> "\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 Binary files differnew file mode 100644 index 00000000..dbf3721c --- /dev/null +++ b/tests/tests-ttl/LITERAL1_all_controls.ttl 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 --- /dev/null +++ b/tests/tests-ttl/LITERAL1_all_controls.ttl.thru 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 @@ +<http://a.example/s> <http://a.example/p> " !\"#$%&():;<=>?@[]^_`{|}~" . 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 @@ +<http://a.example/s> <http://a.example/p> ' !"#$%&():;<=>?@[]^_`{|}~' . 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.nt> ; . +<#LITERAL1_all_controls> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL1_all_controls" ; + rdfs:comment "LITERAL1_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ; + mf:action <LITERAL1_all_controls.ttl> ; + mf:result <LITERAL1_all_controls.nt> ; + . + +<#LITERAL1_all_punctuation> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL1_all_punctuation" ; + rdfs:comment "LITERAL1_all_punctuation '!\"#$%&()...'" ; + mf:action <LITERAL1_all_punctuation.ttl> ; + mf:result <LITERAL1_all_punctuation.nt> ; + . + <#LITERAL_LONG1> rdf:type rdft:TestTurtleEval ; mf:name "LITERAL_LONG1" ; rdfs:comment "LITERAL_LONG1 '''x'''" ; |