From 4dc7f00c2a312937073c63960307910da739c27b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Mar 2019 12:16:54 +0100 Subject: Support reading lone lists in lax mode This allows parsing documents like "(42) ." --- test/lax/manifest.ttl | 7 +++++++ test/lax/test-lone-list.nt | 2 ++ test/lax/test-lone-list.ttl | 1 + 3 files changed, 10 insertions(+) create mode 100644 test/lax/test-lone-list.nt create mode 100644 test/lax/test-lone-list.ttl (limited to 'test') diff --git a/test/lax/manifest.ttl b/test/lax/manifest.ttl index 0cfdb776..c3218a6b 100644 --- a/test/lax/manifest.ttl +++ b/test/lax/manifest.ttl @@ -10,6 +10,7 @@ <#test-bad-string> <#test-bad-uri> <#test-bad-utf8> + <#test-lone-list> ) . <#test-bad-string> @@ -30,3 +31,9 @@ mf:action ; mf:result . +<#test-lone-list> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "test-lone-list" ; + mf:action ; + mf:result . + diff --git a/test/lax/test-lone-list.nt b/test/lax/test-lone-list.nt new file mode 100644 index 00000000..400c2aba --- /dev/null +++ b/test/lax/test-lone-list.nt @@ -0,0 +1,2 @@ +_:b1 "42"^^ . +_:b1 . diff --git a/test/lax/test-lone-list.ttl b/test/lax/test-lone-list.ttl new file mode 100644 index 00000000..e7b51ab7 --- /dev/null +++ b/test/lax/test-lone-list.ttl @@ -0,0 +1 @@ +(42) . \ No newline at end of file -- cgit v1.2.1