From 66adb6e1cea6e1231723a41c60f0b9e650e20448 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Feb 2024 12:10:49 -0500 Subject: Add more exhaustive NTriples and NQuads test cases --- test/extra/good/manifest.ttl | 66 ++++++++++++++++++++++ .../good/test-nq-syntax-eof-after-blank-dot.nq | 1 + test/extra/good/test-nq-syntax-eol-cr.nq | 1 + test/extra/good/test-nq-syntax-eol-crlf.nq | 7 +++ test/extra/good/test-nq-syntax-eol-lf.nq | 7 +++ test/extra/good/test-nq-syntax-eol-lfcr.nq | 8 +++ test/extra/good/test-nt-syntax-blank-dot.nt | 1 + .../good/test-nt-syntax-eof-after-blank-dot.nt | 1 + test/extra/good/test-nt-syntax-eol-cr.nt | 1 + test/extra/good/test-nt-syntax-eol-crlf.nt | 7 +++ test/extra/good/test-nt-syntax-eol-lf.nt | 7 +++ test/extra/good/test-nt-syntax-eol-lfcr.nt | 8 +++ 12 files changed, 115 insertions(+) create mode 100644 test/extra/good/test-nq-syntax-eof-after-blank-dot.nq create mode 100644 test/extra/good/test-nq-syntax-eol-cr.nq create mode 100644 test/extra/good/test-nq-syntax-eol-crlf.nq create mode 100644 test/extra/good/test-nq-syntax-eol-lf.nq create mode 100644 test/extra/good/test-nq-syntax-eol-lfcr.nq create mode 100644 test/extra/good/test-nt-syntax-blank-dot.nt create mode 100644 test/extra/good/test-nt-syntax-eof-after-blank-dot.nt create mode 100644 test/extra/good/test-nt-syntax-eol-cr.nt create mode 100644 test/extra/good/test-nt-syntax-eol-crlf.nt create mode 100644 test/extra/good/test-nt-syntax-eol-lf.nt create mode 100644 test/extra/good/test-nt-syntax-eol-lfcr.nt (limited to 'test/extra/good') diff --git a/test/extra/good/manifest.ttl b/test/extra/good/manifest.ttl index 5f4e8761..efef7f54 100644 --- a/test/extra/good/manifest.ttl +++ b/test/extra/good/manifest.ttl @@ -32,7 +32,18 @@ <#test-no-spaces> <#test-non-curie-uri> <#test-nq-syntax-dot-end> + <#test-nq-syntax-eof-after-blank-dot> + <#test-nq-syntax-eol-cr> + <#test-nq-syntax-eol-crlf> + <#test-nq-syntax-eol-lf> + <#test-nq-syntax-eol-lfcr> + <#test-nt-syntax-blank-dot> <#test-nt-syntax-dot-end> + <#test-nt-syntax-eof-after-blank-dot> + <#test-nt-syntax-eol-cr> + <#test-nt-syntax-eol-crlf> + <#test-nt-syntax-eol-lf> + <#test-nt-syntax-eol-lfcr> <#test-out-of-range-unicode> <#test-prefix> <#test-quote-escapes> @@ -193,16 +204,71 @@ mf:name "test-non-curie-uri" ; mf:result . +<#test-nq-syntax-eof-after-blank-dot> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nq-syntax-eof-after-blank-dot" . + <#test-nq-syntax-dot-end> a rdft:TestNQuadsPositiveSyntax ; mf:action ; mf:name "test-nq-syntax-dot-end" . +<#test-nq-syntax-eol-cr> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nq-syntax-eol-cr" . + +<#test-nq-syntax-eol-crlf> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nq-syntax-eol-crlf" . + +<#test-nq-syntax-eol-lf> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nq-syntax-eol-lf" . + +<#test-nq-syntax-eol-lfcr> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nq-syntax-eol-lfcr" . + +<#test-nt-syntax-blank-dot> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nt-syntax-blank-dot" . + <#test-nt-syntax-dot-end> a rdft:TestNQuadsPositiveSyntax ; mf:action ; mf:name "test-nt-syntax-dot-end" . +<#test-nt-syntax-eof-after-blank-dot> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nt-syntax-eof-after-blank-dot" . + +<#test-nt-syntax-eol-cr> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nt-syntax-eol-cr" . + +<#test-nt-syntax-eol-crlf> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nt-syntax-eol-crlf" . + +<#test-nt-syntax-eol-lf> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nt-syntax-eol-lf" . + +<#test-nt-syntax-eol-lfcr> + a rdft:TestNTriplesPositiveSyntax ; + mf:action ; + mf:name "test-nt-syntax-eol-lfcr" . + <#test-out-of-range-unicode> a rdft:TestTurtleEval ; mf:action ; diff --git a/test/extra/good/test-nq-syntax-eof-after-blank-dot.nq b/test/extra/good/test-nq-syntax-eof-after-blank-dot.nq new file mode 100644 index 00000000..96bc144f --- /dev/null +++ b/test/extra/good/test-nq-syntax-eof-after-blank-dot.nq @@ -0,0 +1 @@ + _:blank. \ No newline at end of file diff --git a/test/extra/good/test-nq-syntax-eol-cr.nq b/test/extra/good/test-nq-syntax-eol-cr.nq new file mode 100644 index 00000000..a25f35f5 --- /dev/null +++ b/test/extra/good/test-nq-syntax-eol-cr.nq @@ -0,0 +1 @@ + "1" . # line comment "2" . # trailing comment "3" . "4" . \ No newline at end of file diff --git a/test/extra/good/test-nq-syntax-eol-crlf.nq b/test/extra/good/test-nq-syntax-eol-crlf.nq new file mode 100644 index 00000000..3362a013 --- /dev/null +++ b/test/extra/good/test-nq-syntax-eol-crlf.nq @@ -0,0 +1,7 @@ + + "1" . +# line comment + "2" . # trailing comment + "3" . + + "4" . diff --git a/test/extra/good/test-nq-syntax-eol-lf.nq b/test/extra/good/test-nq-syntax-eol-lf.nq new file mode 100644 index 00000000..9979407c --- /dev/null +++ b/test/extra/good/test-nq-syntax-eol-lf.nq @@ -0,0 +1,7 @@ + + "1" . +# line comment + "2" . # trailing comment + "3" . + + "4" . diff --git a/test/extra/good/test-nq-syntax-eol-lfcr.nq b/test/extra/good/test-nq-syntax-eol-lfcr.nq new file mode 100644 index 00000000..c006a463 --- /dev/null +++ b/test/extra/good/test-nq-syntax-eol-lfcr.nq @@ -0,0 +1,8 @@ + + "1" . + # line comment + "2" . # trailing comment + "3" . + + "4" . + \ No newline at end of file diff --git a/test/extra/good/test-nt-syntax-blank-dot.nt b/test/extra/good/test-nt-syntax-blank-dot.nt new file mode 100644 index 00000000..2f92d779 --- /dev/null +++ b/test/extra/good/test-nt-syntax-blank-dot.nt @@ -0,0 +1 @@ + _:sparqley.blank . diff --git a/test/extra/good/test-nt-syntax-eof-after-blank-dot.nt b/test/extra/good/test-nt-syntax-eof-after-blank-dot.nt new file mode 100644 index 00000000..2d18185e --- /dev/null +++ b/test/extra/good/test-nt-syntax-eof-after-blank-dot.nt @@ -0,0 +1 @@ + _:blank. \ No newline at end of file diff --git a/test/extra/good/test-nt-syntax-eol-cr.nt b/test/extra/good/test-nt-syntax-eol-cr.nt new file mode 100644 index 00000000..a25f35f5 --- /dev/null +++ b/test/extra/good/test-nt-syntax-eol-cr.nt @@ -0,0 +1 @@ + "1" . # line comment "2" . # trailing comment "3" . "4" . \ No newline at end of file diff --git a/test/extra/good/test-nt-syntax-eol-crlf.nt b/test/extra/good/test-nt-syntax-eol-crlf.nt new file mode 100644 index 00000000..3362a013 --- /dev/null +++ b/test/extra/good/test-nt-syntax-eol-crlf.nt @@ -0,0 +1,7 @@ + + "1" . +# line comment + "2" . # trailing comment + "3" . + + "4" . diff --git a/test/extra/good/test-nt-syntax-eol-lf.nt b/test/extra/good/test-nt-syntax-eol-lf.nt new file mode 100644 index 00000000..9979407c --- /dev/null +++ b/test/extra/good/test-nt-syntax-eol-lf.nt @@ -0,0 +1,7 @@ + + "1" . +# line comment + "2" . # trailing comment + "3" . + + "4" . diff --git a/test/extra/good/test-nt-syntax-eol-lfcr.nt b/test/extra/good/test-nt-syntax-eol-lfcr.nt new file mode 100644 index 00000000..c006a463 --- /dev/null +++ b/test/extra/good/test-nt-syntax-eol-lfcr.nt @@ -0,0 +1,8 @@ + + "1" . + # line comment + "2" . # trailing comment + "3" . + + "4" . + \ No newline at end of file -- cgit v1.2.1