aboutsummaryrefslogtreecommitdiffstats
path: root/test/extra/bad
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-24 15:12:05 -0400
committerDavid Robillard <d@drobilla.net>2024-06-25 15:54:43 -0400
commit51cc405d288a078543523efd380ce3c7d11ac501 (patch)
tree48d3b3263e966cc46c0667fd40212304cb70cbde /test/extra/bad
parent2f51df8eed40bb808dce0ce1d5ba218a1b2b0071 (diff)
downloadserd-51cc405d288a078543523efd380ce3c7d11ac501.tar.gz
serd-51cc405d288a078543523efd380ce3c7d11ac501.tar.bz2
serd-51cc405d288a078543523efd380ce3c7d11ac501.zip
Improve test suite coverage
Diffstat (limited to 'test/extra/bad')
-rw-r--r--test/extra/bad/bad-bom-1.ttl3
-rw-r--r--test/extra/bad/bad-bom-2.ttl3
-rw-r--r--test/extra/bad/bad-bom-only-1.ttl1
-rw-r--r--test/extra/bad/bad-bom-only-2.ttl1
-rw-r--r--test/extra/bad/manifest.ttl26
5 files changed, 30 insertions, 4 deletions
diff --git a/test/extra/bad/bad-bom-1.ttl b/test/extra/bad/bad-bom-1.ttl
new file mode 100644
index 00000000..7d7681d4
--- /dev/null
+++ b/test/extra/bad/bad-bom-1.ttl
@@ -0,0 +1,3 @@
+ï# This file starts with the first byte of the UTF-8 Byte Order Mark
+
+<http://example.org/thing> a <http://example.org/Thing> .
diff --git a/test/extra/bad/bad-bom-2.ttl b/test/extra/bad/bad-bom-2.ttl
new file mode 100644
index 00000000..9ce3f093
--- /dev/null
+++ b/test/extra/bad/bad-bom-2.ttl
@@ -0,0 +1,3 @@
+ï»# This file starts with the first two bytes of the UTF-8 Byte Order Mark
+
+<http://example.org/thing> a <http://example.org/Thing> .
diff --git a/test/extra/bad/bad-bom-only-1.ttl b/test/extra/bad/bad-bom-only-1.ttl
new file mode 100644
index 00000000..a4a063a1
--- /dev/null
+++ b/test/extra/bad/bad-bom-only-1.ttl
@@ -0,0 +1 @@
+ï \ No newline at end of file
diff --git a/test/extra/bad/bad-bom-only-2.ttl b/test/extra/bad/bad-bom-only-2.ttl
new file mode 100644
index 00000000..022c50f1
--- /dev/null
+++ b/test/extra/bad/bad-bom-only-2.ttl
@@ -0,0 +1 @@
+ï» \ No newline at end of file
diff --git a/test/extra/bad/manifest.ttl b/test/extra/bad/manifest.ttl
index 7e35e5ff..64dbf05f 100644
--- a/test/extra/bad/manifest.ttl
+++ b/test/extra/bad/manifest.ttl
@@ -13,7 +13,10 @@
<#bad-blank-node-label>
<#bad-blank-predicate>
<#bad-blank-syntax>
- <#bad-bom>
+ <#bad-bom-1>
+ <#bad-bom-2>
+ <#bad-bom-only-1>
+ <#bad-bom-only-2>
<#bad-char-in-local>
<#bad-char-in-prefix>
<#bad-char-in-uri>
@@ -165,10 +168,25 @@
mf:action <bad-blank-syntax.ttl> ;
mf:name "bad-blank-syntax" .
-<#bad-bom>
+<#bad-bom-1>
a rdft:TestTurtleNegativeSyntax ;
- mf:action <bad-bom.ttl> ;
- mf:name "bad-bom" .
+ mf:action <bad-bom-1.ttl> ;
+ mf:name "bad-bom-1" .
+
+<#bad-bom-2>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <bad-bom-2.ttl> ;
+ mf:name "bad-bom-2" .
+
+<#bad-bom-only-1>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <bad-bom-only-1.ttl> ;
+ mf:name "bad-bom-only-1" .
+
+<#bad-bom-only-2>
+ a rdft:TestTurtleNegativeSyntax ;
+ mf:action <bad-bom-only-2.ttl> ;
+ mf:name "bad-bom-only-2" .
<#bad-char-in-local>
a rdft:TestTurtleNegativeSyntax ;