aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-11-11 15:53:41 +0100
committerDavid Robillard <d@drobilla.net>2018-11-11 15:53:59 +0100
commit57b5233e5b3ace691e0709ac3b58348b2e091ce8 (patch)
treea41136d66f9e9101b7ab485b84ed5778fb92ceec /tests
parent2d212bac8e69bbd473fdf18bf6dd682cbc149306 (diff)
downloadserd-57b5233e5b3ace691e0709ac3b58348b2e091ce8.tar.gz
serd-57b5233e5b3ace691e0709ac3b58348b2e091ce8.tar.bz2
serd-57b5233e5b3ace691e0709ac3b58348b2e091ce8.zip
Add tests for misspelled prefix and base directives
Diffstat (limited to 'tests')
-rw-r--r--tests/bad/bad-misspelled-base.ttl1
-rw-r--r--tests/bad/bad-misspelled-prefix.ttl1
-rw-r--r--tests/bad/manifest.ttl12
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/bad/bad-misspelled-base.ttl b/tests/bad/bad-misspelled-base.ttl
new file mode 100644
index 00000000..c8ae227a
--- /dev/null
+++ b/tests/bad/bad-misspelled-base.ttl
@@ -0,0 +1 @@
+@baze eg: <http://example.org/> .
diff --git a/tests/bad/bad-misspelled-prefix.ttl b/tests/bad/bad-misspelled-prefix.ttl
new file mode 100644
index 00000000..8c9d57f6
--- /dev/null
+++ b/tests/bad/bad-misspelled-prefix.ttl
@@ -0,0 +1 @@
+@prefox eg: <http://example.org/> .
diff --git a/tests/bad/manifest.ttl b/tests/bad/manifest.ttl
index 1e21397d..bd51ba48 100644
--- a/tests/bad/manifest.ttl
+++ b/tests/bad/manifest.ttl
@@ -50,6 +50,8 @@
<#bad-list>
<#bad-long-literal-in-list>
<#bad-missing-semi>
+ <#bad-misspelled-base>
+ <#bad-misspelled-prefix>
<#bad-namespace>
<#bad-ns>
<#bad-num>
@@ -284,6 +286,16 @@
mf:name "bad-missing-semi" ;
mf:action <bad-missing-semi.ttl> .
+<#bad-misspelled-base>
+ rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "bad-misspelled-base" ;
+ mf:action <bad-misspelled-base.ttl> .
+
+<#bad-misspelled-prefix>
+ rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "bad-misspelled-prefix" ;
+ mf:action <bad-misspelled-prefix.ttl> .
+
<#bad-namespace>
rdf:type rdft:TestTurtleNegativeSyntax ;
mf:name "bad-namespace" ;