From 37723be4c8b49b785c40fe5ccd34edbc7c018e1b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Feb 2024 18:51:15 -0500 Subject: Fix parsing NQuads lines with no space before the final dot --- test/extra/good/manifest.ttl | 12 ++++++++++++ test/extra/good/test-nq-syntax-dot-end.nq | 5 +++++ test/extra/good/test-nt-syntax-dot-end.nt | 5 +++++ 3 files changed, 22 insertions(+) create mode 100644 test/extra/good/test-nq-syntax-dot-end.nq create mode 100644 test/extra/good/test-nt-syntax-dot-end.nt (limited to 'test') diff --git a/test/extra/good/manifest.ttl b/test/extra/good/manifest.ttl index 24b301e9..5f4e8761 100644 --- a/test/extra/good/manifest.ttl +++ b/test/extra/good/manifest.ttl @@ -31,6 +31,8 @@ <#test-long-utf8> <#test-no-spaces> <#test-non-curie-uri> + <#test-nq-syntax-dot-end> + <#test-nt-syntax-dot-end> <#test-out-of-range-unicode> <#test-prefix> <#test-quote-escapes> @@ -191,6 +193,16 @@ mf:name "test-non-curie-uri" ; mf:result . +<#test-nq-syntax-dot-end> + a rdft:TestNQuadsPositiveSyntax ; + mf:action ; + mf:name "test-nq-syntax-dot-end" . + +<#test-nt-syntax-dot-end> + a rdft:TestNQuadsPositiveSyntax ; + mf:action ; + mf:name "test-nt-syntax-dot-end" . + <#test-out-of-range-unicode> a rdft:TestTurtleEval ; mf:action ; diff --git a/test/extra/good/test-nq-syntax-dot-end.nq b/test/extra/good/test-nq-syntax-dot-end.nq new file mode 100644 index 00000000..862e326c --- /dev/null +++ b/test/extra/good/test-nq-syntax-dot-end.nq @@ -0,0 +1,5 @@ + _:o _:g . + _:o _:g . + _:o _:h. + _:o _:h. + _:o _:what.how. \ No newline at end of file diff --git a/test/extra/good/test-nt-syntax-dot-end.nt b/test/extra/good/test-nt-syntax-dot-end.nt new file mode 100644 index 00000000..f4e3b874 --- /dev/null +++ b/test/extra/good/test-nt-syntax-dot-end.nt @@ -0,0 +1,5 @@ + _:o . + _:o . + _:o. + _:o. + _:what.how. \ No newline at end of file -- cgit v1.2.1