From e0c3ff08acbc25040e73838770435e1d2a89265e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 25 Feb 2025 09:56:01 -0500 Subject: Fix reading numbers with no space before the final dot --- test/extra/good/manifest.ttl | 35 ++++++++++++++++++++++++++ test/extra/good/test-decimal-ends-with-dot.nt | 1 + test/extra/good/test-decimal-ends-with-dot.ttl | 4 +++ test/extra/good/test-double-ends-with-dot.nt | 1 + test/extra/good/test-double-ends-with-dot.ttl | 4 +++ test/extra/good/test-false-ends-with-dot.nt | 1 + test/extra/good/test-false-ends-with-dot.ttl | 4 +++ test/extra/good/test-integer-ends-with-dot.nt | 1 + test/extra/good/test-integer-ends-with-dot.ttl | 4 +++ test/extra/good/test-true-ends-with-dot.nt | 1 + test/extra/good/test-true-ends-with-dot.ttl | 4 +++ 11 files changed, 60 insertions(+) create mode 100644 test/extra/good/test-decimal-ends-with-dot.nt create mode 100644 test/extra/good/test-decimal-ends-with-dot.ttl create mode 100644 test/extra/good/test-double-ends-with-dot.nt create mode 100644 test/extra/good/test-double-ends-with-dot.ttl create mode 100644 test/extra/good/test-false-ends-with-dot.nt create mode 100644 test/extra/good/test-false-ends-with-dot.ttl create mode 100644 test/extra/good/test-integer-ends-with-dot.nt create mode 100644 test/extra/good/test-integer-ends-with-dot.ttl create mode 100644 test/extra/good/test-true-ends-with-dot.nt create mode 100644 test/extra/good/test-true-ends-with-dot.ttl (limited to 'test') diff --git a/test/extra/good/manifest.ttl b/test/extra/good/manifest.ttl index 350d7d9c..2ac0ba59 100644 --- a/test/extra/good/manifest.ttl +++ b/test/extra/good/manifest.ttl @@ -20,12 +20,16 @@ <#test-comment-whitespace> <#test-cr> <#test-digit-start-pname> + <#test-decimal-ends-with-dot> <#test-double> + <#test-double-ends-with-dot> <#test-empty-path-base> <#test-eof-at-page-end> <#test-ext-namedblank-iri> <#test-ext-namedblank-prefix> + <#test-false-ends-with-dot> <#test-id> + <#test-integer-ends-with-dot> <#test-list-in-blank> <#test-list-subject> <#test-local-name-ends-with-dot> @@ -56,6 +60,7 @@ <#test-several-eaten-dots> <#test-string-escapes> <#test-trig-syntax-all-rules> + <#test-true-ends-with-dot> <#test-ttl-syntax-all-rules> <#test-uri> ) . @@ -144,12 +149,24 @@ mf:name "test-digit-start-pname" ; mf:result . +<#test-decimal-ends-with-dot> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "test-decimal-ends-with-dot" ; + mf:result . + <#test-double> a rdft:TestTurtleEval ; mf:action ; mf:name "test-double" ; mf:result . +<#test-double-ends-with-dot> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "test-double-ends-with-dot" ; + mf:result . + <#test-empty-path-base> a rdft:TestTurtleEval ; mf:action ; @@ -174,12 +191,24 @@ mf:name "test-ext-namedblank-prefix" ; mf:result . +<#test-false-ends-with-dot> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "test-false-ends-with-dot" ; + mf:result . + <#test-id> a rdft:TestTurtleEval ; mf:action ; mf:name "test-id" ; mf:result . +<#test-integer-ends-with-dot> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "test-integer-ends-with-dot" ; + mf:result . + <#test-list-in-blank> a rdft:TestTurtleEval ; mf:action ; @@ -344,6 +373,12 @@ mf:action ; mf:name "test-trig-syntax-all-rules" . +<#test-true-ends-with-dot> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "test-true-ends-with-dot" ; + mf:result . + <#test-ttl-syntax-all-rules> a rdft:TestTurtlePositiveSyntax ; mf:action ; diff --git a/test/extra/good/test-decimal-ends-with-dot.nt b/test/extra/good/test-decimal-ends-with-dot.nt new file mode 100644 index 00000000..be0802bc --- /dev/null +++ b/test/extra/good/test-decimal-ends-with-dot.nt @@ -0,0 +1 @@ + "12.3"^^ . diff --git a/test/extra/good/test-decimal-ends-with-dot.ttl b/test/extra/good/test-decimal-ends-with-dot.ttl new file mode 100644 index 00000000..a63970d3 --- /dev/null +++ b/test/extra/good/test-decimal-ends-with-dot.ttl @@ -0,0 +1,4 @@ +@prefix eg: . + +eg:s + eg:p 12.3. diff --git a/test/extra/good/test-double-ends-with-dot.nt b/test/extra/good/test-double-ends-with-dot.nt new file mode 100644 index 00000000..20e4395e --- /dev/null +++ b/test/extra/good/test-double-ends-with-dot.nt @@ -0,0 +1 @@ + "12.3e4"^^ . diff --git a/test/extra/good/test-double-ends-with-dot.ttl b/test/extra/good/test-double-ends-with-dot.ttl new file mode 100644 index 00000000..4bd17a0b --- /dev/null +++ b/test/extra/good/test-double-ends-with-dot.ttl @@ -0,0 +1,4 @@ +@prefix eg: . + +eg:s + eg:p 12.3e4. diff --git a/test/extra/good/test-false-ends-with-dot.nt b/test/extra/good/test-false-ends-with-dot.nt new file mode 100644 index 00000000..3b811813 --- /dev/null +++ b/test/extra/good/test-false-ends-with-dot.nt @@ -0,0 +1 @@ + "false"^^ . diff --git a/test/extra/good/test-false-ends-with-dot.ttl b/test/extra/good/test-false-ends-with-dot.ttl new file mode 100644 index 00000000..14e2aa90 --- /dev/null +++ b/test/extra/good/test-false-ends-with-dot.ttl @@ -0,0 +1,4 @@ +@prefix eg: . + +eg:s + eg:p false. diff --git a/test/extra/good/test-integer-ends-with-dot.nt b/test/extra/good/test-integer-ends-with-dot.nt new file mode 100644 index 00000000..7d6ff362 --- /dev/null +++ b/test/extra/good/test-integer-ends-with-dot.nt @@ -0,0 +1 @@ + "12"^^ . diff --git a/test/extra/good/test-integer-ends-with-dot.ttl b/test/extra/good/test-integer-ends-with-dot.ttl new file mode 100644 index 00000000..350ea41d --- /dev/null +++ b/test/extra/good/test-integer-ends-with-dot.ttl @@ -0,0 +1,4 @@ +@prefix eg: . + +eg:s + eg:p 12. diff --git a/test/extra/good/test-true-ends-with-dot.nt b/test/extra/good/test-true-ends-with-dot.nt new file mode 100644 index 00000000..9938065b --- /dev/null +++ b/test/extra/good/test-true-ends-with-dot.nt @@ -0,0 +1 @@ + "true"^^ . diff --git a/test/extra/good/test-true-ends-with-dot.ttl b/test/extra/good/test-true-ends-with-dot.ttl new file mode 100644 index 00000000..ebd3b6e1 --- /dev/null +++ b/test/extra/good/test-true-ends-with-dot.ttl @@ -0,0 +1,4 @@ +@prefix eg: . + +eg:s + eg:p true. -- cgit v1.2.1