diff options
author | David Robillard <d@drobilla.net> | 2023-04-03 09:00:19 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-04-05 09:45:15 -0400 |
commit | 6afca7558bd9b074957aec421fd22868c5b6698e (patch) | |
tree | 8d4bc12317e2bacc457a97ad132c7c91e5d11dbe /test/extra | |
parent | accb206729f92b86b932f98df840d1480605ce11 (diff) | |
download | serd-6afca7558bd9b074957aec421fd22868c5b6698e.tar.gz serd-6afca7558bd9b074957aec421fd22868c5b6698e.tar.bz2 serd-6afca7558bd9b074957aec421fd22868c5b6698e.zip |
Add tests for EOF within UTF-8 characters
Diffstat (limited to 'test/extra')
-rw-r--r-- | test/extra/bad/bad-eof-in-text-character.ttl | 3 | ||||
-rw-r--r-- | test/extra/bad/bad-eof-in-uri-character.ttl | 3 | ||||
-rw-r--r-- | test/extra/bad/manifest.ttl | 10 |
3 files changed, 16 insertions, 0 deletions
diff --git a/test/extra/bad/bad-eof-in-text-character.ttl b/test/extra/bad/bad-eof-in-text-character.ttl new file mode 100644 index 00000000..a614803a --- /dev/null +++ b/test/extra/bad/bad-eof-in-text-character.ttl @@ -0,0 +1,3 @@ +@prefix eg: <http://example.org/> . + +<> eg:comment "Only the leading byte Ã
\ No newline at end of file diff --git a/test/extra/bad/bad-eof-in-uri-character.ttl b/test/extra/bad/bad-eof-in-uri-character.ttl new file mode 100644 index 00000000..eda70770 --- /dev/null +++ b/test/extra/bad/bad-eof-in-uri-character.ttl @@ -0,0 +1,3 @@ +@prefix eg: <http://example.org/> . + +<> eg:uri <http://example.org/leadingÃ
\ No newline at end of file diff --git a/test/extra/bad/manifest.ttl b/test/extra/bad/manifest.ttl index 691969d9..10130df8 100644 --- a/test/extra/bad/manifest.ttl +++ b/test/extra/bad/manifest.ttl @@ -228,6 +228,11 @@ mf:action <bad-eof-in-string.ttl> ; mf:name "bad-eof-in-string" . +<#bad-eof-in-text-character> + a rdft:TestTurtleNegativeSyntax ; + mf:action <bad-eof-in-text-character.ttl> ; + mf:name "bad-eof-in-text-character" . + <#bad-eof-in-triple-quote> a rdft:TestTurtleNegativeSyntax ; mf:action <bad-eof-in-triple-quote.ttl> ; @@ -238,6 +243,11 @@ mf:action <bad-eof-in-uri.ttl> ; mf:name "bad-eof-in-uri" . +<#bad-eof-in-uri-character> + a rdft:TestTurtleNegativeSyntax ; + mf:action <bad-eof-in-uri-character.ttl> ; + mf:name "bad-eof-in-uri-character" . + <#bad-eof-in-uri-scheme> a rdft:TestNTriplesNegativeSyntax ; mf:action <bad-eof-in-uri-scheme.nt> ; |