diff options
author | David Robillard <d@drobilla.net> | 2023-04-03 10:49:04 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-04-06 07:19:10 -0400 |
commit | e3fd76d4e5beb8596be651b41be730f62cfdc9d0 (patch) | |
tree | 2c55db64b3a2d0387173b7a210b3065247702018 /test | |
parent | 9910494d7bb417fb75f1c99b65f9956d14184059 (diff) | |
download | serd-e3fd76d4e5beb8596be651b41be730f62cfdc9d0.tar.gz serd-e3fd76d4e5beb8596be651b41be730f62cfdc9d0.tar.bz2 serd-e3fd76d4e5beb8596be651b41be730f62cfdc9d0.zip |
Make URI writing stricter by default
Diffstat (limited to 'test')
-rw-r--r-- | test/extra/bad/manifest.ttl | 30 | ||||
-rw-r--r-- | test/meson.build | 10 |
2 files changed, 39 insertions, 1 deletions
diff --git a/test/extra/bad/manifest.ttl b/test/extra/bad/manifest.ttl index 10130df8..0ea3ccac 100644 --- a/test/extra/bad/manifest.ttl +++ b/test/extra/bad/manifest.ttl @@ -6,6 +6,7 @@ a mf:Manifest ; rdfs:comment "Serd bad (negative) test suite" ; mf:entries ( + <#bad-a-object> <#bad-a-subject> <#bad-base> <#bad-blank> @@ -43,6 +44,8 @@ <#bad-equivalence> <#bad-escape> <#bad-ext-namedblank-op> + <#bad-false-predicate> + <#bad-false-subject> <#bad-forAll> <#bad-forSome> <#bad-graph-blank-label> @@ -76,6 +79,8 @@ <#bad-semicolon-after-subject> <#bad-string> <#bad-subject> + <#bad-true-predicate> + <#bad-true-subject> <#bad-uri-escape> <#bad-uri-scheme> <#bad-uri-scheme-start> @@ -83,6 +88,11 @@ <#bad-verb> ) . +<#bad-a-object> + a rdft:TestTurtleNegativeSyntax ; + mf:action <bad-a-object.ttl> ; + mf:name "bad-a-object" . + <#bad-a-subject> a rdft:TestTurtleNegativeSyntax ; mf:action <bad-a-subject.ttl> ; @@ -268,6 +278,16 @@ mf:action <bad-ext-namedblank-op.ttl> ; mf:name "bad-ext-namedblank-op" . +<#bad-false-predicate> + a rdft:TestTurtleNegativeSyntax ; + mf:action <bad-false-predicate.ttl> ; + mf:name "bad-false-predicate" . + +<#bad-false-subject> + a rdft:TestTurtleNegativeSyntax ; + mf:action <bad-false-subject.ttl> ; + mf:name "bad-false-subject" . + <#bad-forAll> a rdft:TestTurtleNegativeSyntax ; mf:action <bad-forAll.ttl> ; @@ -433,6 +453,16 @@ mf:action <bad-subject.ttl> ; mf:name "bad-subject" . +<#bad-true-predicate> + a rdft:TestTurtleNegativeSyntax ; + mf:action <bad-true-predicate.ttl> ; + mf:name "bad-true-predicate" . + +<#bad-true-subject> + a rdft:TestTurtleNegativeSyntax ; + mf:action <bad-true-subject.ttl> ; + mf:name "bad-true-subject" . + <#bad-uri-escape> a rdft:TestTurtleNegativeSyntax ; mf:action <bad-uri-escape.ttl> ; diff --git a/test/meson.build b/test/meson.build index c55f2c5d..0502e833 100644 --- a/test/meson.build +++ b/test/meson.build @@ -239,7 +239,7 @@ test_suites = { ], 'trig': [ files('w3c/trig/manifest.ttl'), ns_w3 + 'TriGTests/', - '--', '-a', '-f', '-i', 'TriG', + '--', '-a', '-i', 'TriG', ], 'turtle': [ files('w3c/turtle/manifest.ttl'), ns_w3 + 'TurtleTests/', @@ -252,6 +252,10 @@ test_suites = { 'bad': [ files('extra/bad/manifest.ttl'), ns_serdtest + 'bad/', ], + 'bad_turtle': [ + files('extra/bad/manifest.ttl'), ns_serdtest + 'bad/', + '--', '-o', 'turtle', + ], 'big': [ files('extra/big/manifest.ttl'), ns_serdtest + 'big/', ], @@ -259,6 +263,10 @@ test_suites = { files('extra/good/manifest.ttl'), ns_serdtest + 'good/', '--', '-b', ], + 'fast': [ + files('extra/good/manifest.ttl'), ns_serdtest + 'good/', + '--', '-f', + ], 'full': [ files('extra/full/manifest.ttl'), ns_serdtest + 'full/', '--', '-f', |