From 6afca7558bd9b074957aec421fd22868c5b6698e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Apr 2023 09:00:19 -0400 Subject: Add tests for EOF within UTF-8 characters --- test/extra/bad/bad-eof-in-text-character.ttl | 3 +++ test/extra/bad/bad-eof-in-uri-character.ttl | 3 +++ test/extra/bad/manifest.ttl | 10 ++++++++++ 3 files changed, 16 insertions(+) create mode 100644 test/extra/bad/bad-eof-in-text-character.ttl create mode 100644 test/extra/bad/bad-eof-in-uri-character.ttl 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: . + +<> 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: . + +<> eg:uri ; mf:name "bad-eof-in-string" . +<#bad-eof-in-text-character> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-text-character" . + <#bad-eof-in-triple-quote> a rdft:TestTurtleNegativeSyntax ; mf:action ; @@ -238,6 +243,11 @@ mf:action ; mf:name "bad-eof-in-uri" . +<#bad-eof-in-uri-character> + a rdft:TestTurtleNegativeSyntax ; + mf:action ; + mf:name "bad-eof-in-uri-character" . + <#bad-eof-in-uri-scheme> a rdft:TestNTriplesNegativeSyntax ; mf:action ; -- cgit v1.2.1