diff options
author | David Robillard <d@drobilla.net> | 2020-08-15 11:58:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-15 22:52:03 +0200 |
commit | 92c783d6a5c80af365434c28d9c4717e7e31a1e0 (patch) | |
tree | 8329ec4227f0e78c774cc34ab1f4eb2c5b840844 /tests | |
parent | a23f71a0854a8e6e42fe3b2890ef2ab0ebc15aaf (diff) | |
download | serd-92c783d6a5c80af365434c28d9c4717e7e31a1e0.tar.gz serd-92c783d6a5c80af365434c28d9c4717e7e31a1e0.tar.bz2 serd-92c783d6a5c80af365434c28d9c4717e7e31a1e0.zip |
Harden prefixed name parsing
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bad/bad-pn-escape.ttl | 2 | ||||
-rw-r--r-- | tests/bad/manifest.ttl | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/bad/bad-pn-escape.ttl b/tests/bad/bad-pn-escape.ttl new file mode 100644 index 00000000..2b363e89 --- /dev/null +++ b/tests/bad/bad-pn-escape.ttl @@ -0,0 +1,2 @@ +@prefix : <http://example.org/> . +:s :p :\a diff --git a/tests/bad/manifest.ttl b/tests/bad/manifest.ttl index d294f120..57fb02f7 100644 --- a/tests/bad/manifest.ttl +++ b/tests/bad/manifest.ttl @@ -62,6 +62,7 @@ <#bad-num> <#bad-object2> <#bad-object> + <#bad-pn-escape> <#bad-prefix> <#bad-semicolon-after-subject> <#bad-string> @@ -351,6 +352,11 @@ mf:name "bad-object" ; mf:action <bad-object.ttl> . +<#bad-pn-escape> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-pn-escape" ; + mf:action <bad-pn-escape.ttl> . + <#bad-prefix> rdf:type rdft:TestTurtleNegativeSyntax ; mf:name "bad-prefix" ; |