diff options
author | David Robillard <d@drobilla.net> | 2023-03-31 10:50:12 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | d22653dfe356e3da1354cdb0f7915e29c4a33e3b (patch) | |
tree | 496e678ba61a436e2bf0b11b079bf6115ba630fa /test/extra | |
parent | 469034ec4ae5c0b5230ca30c40aaa9b1432c13a2 (diff) | |
download | serd-d22653dfe356e3da1354cdb0f7915e29c4a33e3b.tar.gz serd-d22653dfe356e3da1354cdb0f7915e29c4a33e3b.tar.bz2 serd-d22653dfe356e3da1354cdb0f7915e29c4a33e3b.zip |
Factor out NTriples reader
Diffstat (limited to 'test/extra')
-rw-r--r-- | test/extra/bad/bad-blank-node-label.nt | 1 | ||||
-rw-r--r-- | test/extra/bad/bad-trailing-garbage.nt | 1 | ||||
-rw-r--r-- | test/extra/bad/manifest.ttl | 13 | ||||
-rw-r--r-- | test/extra/good/manifest.ttl | 7 | ||||
-rw-r--r-- | test/extra/lax/manifest.ttl | 7 | ||||
-rw-r--r-- | test/extra/lax/test-out-of-range-unicode.nt (renamed from test/extra/good/test-out-of-range-unicode.nt) | 0 | ||||
-rw-r--r-- | test/extra/lax/test-out-of-range-unicode.ttl (renamed from test/extra/good/test-out-of-range-unicode.ttl) | 0 |
7 files changed, 22 insertions, 7 deletions
diff --git a/test/extra/bad/bad-blank-node-label.nt b/test/extra/bad/bad-blank-node-label.nt new file mode 100644 index 00000000..d178a623 --- /dev/null +++ b/test/extra/bad/bad-blank-node-label.nt @@ -0,0 +1 @@ +<http://example.org/s> <http://example.org/p> _nocolon . diff --git a/test/extra/bad/bad-trailing-garbage.nt b/test/extra/bad/bad-trailing-garbage.nt new file mode 100644 index 00000000..79790812 --- /dev/null +++ b/test/extra/bad/bad-trailing-garbage.nt @@ -0,0 +1 @@ +<http://example.org/s> <http://example.org/p> <http://example.org/o> . <http://example.org/error> diff --git a/test/extra/bad/manifest.ttl b/test/extra/bad/manifest.ttl index 9dda56b2..7ab5a427 100644 --- a/test/extra/bad/manifest.ttl +++ b/test/extra/bad/manifest.ttl @@ -10,8 +10,10 @@ <#bad-a-subject> <#bad-base> <#bad-blank> + <#bad-blank-node-label> <#bad-blank-predicate> <#bad-blank-syntax> + <#bad-blank-syntax> <#bad-bom> <#bad-char-in-local> <#bad-char-in-prefix> @@ -78,6 +80,7 @@ <#bad-semicolon-after-subject> <#bad-string> <#bad-subject> + <#bad-trailing-garbage> <#bad-true-predicate> <#bad-true-subject> <#bad-uri-escape> @@ -107,6 +110,11 @@ mf:action <bad-blank.ttl> ; mf:name "bad-blank" . +<#bad-blank-node-label> + a rdft:TestNTriplesNegativeSyntax ; + mf:action <bad-blank-node-label.nt> ; + mf:name "bad-blank-node-label" . + <#bad-blank-predicate> a rdft:TestTurtleNegativeSyntax ; mf:action <bad-blank-predicate.ttl> ; @@ -447,6 +455,11 @@ mf:action <bad-subject.ttl> ; mf:name "bad-subject" . +<#bad-trailing-garbage> + a rdft:TestNTriplesNegativeSyntax ; + mf:action <bad-trailing-garbage.nt> ; + mf:name "bad-trailing-garbage" . + <#bad-true-predicate> a rdft:TestTurtleNegativeSyntax ; mf:action <bad-true-predicate.ttl> ; diff --git a/test/extra/good/manifest.ttl b/test/extra/good/manifest.ttl index c8bfa6f8..bce7c564 100644 --- a/test/extra/good/manifest.ttl +++ b/test/extra/good/manifest.ttl @@ -29,7 +29,6 @@ <#test-long-utf8> <#test-no-spaces> <#test-non-curie-uri> - <#test-out-of-range-unicode> <#test-prefix> <#test-quote-escapes> <#test-rel> @@ -177,12 +176,6 @@ mf:name "test-non-curie-uri" ; mf:result <test-non-curie-uri.nt> . -<#test-out-of-range-unicode> - a rdft:TestTurtleEval ; - mf:action <test-out-of-range-unicode.ttl> ; - mf:name "test-out-of-range-unicode" ; - mf:result <test-out-of-range-unicode.nt> . - <#test-prefix> a rdft:TestTurtleEval ; mf:action <test-prefix.ttl> ; diff --git a/test/extra/lax/manifest.ttl b/test/extra/lax/manifest.ttl index 5fd50f50..c68f0176 100644 --- a/test/extra/lax/manifest.ttl +++ b/test/extra/lax/manifest.ttl @@ -15,6 +15,7 @@ <#test-bad-utf8-nt> <#test-bad-utf8-ttl> <#test-lone-list> + <#test-out-of-range-unicode> ) . <#test-bad-string-nt> @@ -70,3 +71,9 @@ mf:action <test-lone-list.ttl> ; mf:name "test-lone-list" ; mf:result <test-lone-list.nt> . + +<#test-out-of-range-unicode> + a rdft:TestTurtleNegativeSyntax ; + mf:action <test-out-of-range-unicode.ttl> ; + mf:name "test-out-of-range-unicode" ; + mf:result <test-out-of-range-unicode.nt> . diff --git a/test/extra/good/test-out-of-range-unicode.nt b/test/extra/lax/test-out-of-range-unicode.nt index 5def9e31..5def9e31 100644 --- a/test/extra/good/test-out-of-range-unicode.nt +++ b/test/extra/lax/test-out-of-range-unicode.nt diff --git a/test/extra/good/test-out-of-range-unicode.ttl b/test/extra/lax/test-out-of-range-unicode.ttl index 7e64785a..7e64785a 100644 --- a/test/extra/good/test-out-of-range-unicode.ttl +++ b/test/extra/lax/test-out-of-range-unicode.ttl |