From 339f9d90d1fe001978d15e1c007a3861a7145453 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 2 Dec 2023 15:53:25 -0500 Subject: [WIP] Add support for converting literals to canonical form --- test/extra/canon/manifest.ttl | 65 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 test/extra/canon/manifest.ttl (limited to 'test/extra/canon/manifest.ttl') diff --git a/test/extra/canon/manifest.ttl b/test/extra/canon/manifest.ttl new file mode 100644 index 00000000..143928ee --- /dev/null +++ b/test/extra/canon/manifest.ttl @@ -0,0 +1,65 @@ +@prefix mf: . +@prefix rdfs: . +@prefix rdft: . + +<> + a mf:Manifest ; + rdfs:comment "Serd canonical literal writing test suite" ; + mf:entries ( + <#bad-boolean> + <#bad-decimal-leading> + <#bad-decimal-trailing> + <#bad-empty-boolean> + <#bad-integer-leading> + <#bad-integer-trailing> + <#bad-lang-long> + <#test-canon> + ) . + +<#bad-boolean> + a rdft:TestTurtleNegativeEval ; + rdfs:comment "Invalid xsd::boolean syntax" ; + mf:action ; + mf:name "bad-boolean" . + +<#bad-decimal-leading> + a rdft:TestTurtleNegativeEval ; + rdfs:comment "Invalid xsd::decimal syntax (leading garbage)" ; + mf:action ; + mf:name "bad-decimal-leading" . + +<#bad-decimal-trailing> + a rdft:TestTurtleNegativeEval ; + rdfs:comment "Invalid xsd::decimal syntax (trailing garbage)" ; + mf:action ; + mf:name "bad-decimal-trailing" . + +<#bad-empty-boolean> + a rdft:TestTurtleNegativeEval ; + rdfs:comment "Invalid xsd::boolean syntax (no value)" ; + mf:action ; + mf:name "bad-empty-boolean" . + +<#bad-integer-leading> + a rdft:TestTurtleNegativeEval ; + rdfs:comment "Invalid xsd::integer syntax (leading garbage)" ; + mf:action ; + mf:name "bad-integer-leading" . + +<#bad-integer-trailing> + a rdft:TestTurtleNegativeEval ; + rdfs:comment "Invalid xsd::integer syntax (trailing garbage)" ; + mf:action ; + mf:name "bad-integer-trailing" . + +<#bad-lang-long> + a rdft:TestTurtleNegativeEval ; + rdfs:comment "Overly long language tag" ; + mf:action ; + mf:name "bad-lang-long" . + +<#test-canon> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "test-canon" ; + mf:result . -- cgit v1.2.1