diff --git a/sparql/sparql11/syntax-query/manifest.ttl b/sparql/sparql11/syntax-query/manifest.ttl index be0af0cf..80920ed1 100644 --- a/sparql/sparql11/syntax-query/manifest.ttl +++ b/sparql/sparql11/syntax-query/manifest.ttl @@ -110,6 +110,9 @@ :test_codepoint_boundaries_04 :test_codepoint_boundaries_escaped_05 :test_codepoint_invalid_escaped_bad_06 + +:test_bad_values_too_few +:test_bad_values_too_many ) . :test_1 rdf:type mf:PositiveSyntaxTest11 ; @@ -662,3 +665,11 @@ mf:name "\\u unicode codepoint escaping in literal using partial surrogate pair" ; mf:description "Using a codepoint that is half of a surrogate pair (in the range U+D800–U+DFFF) without a corresponding codepoint is illegal" ; mf:action ;. + +:test_bad_values_too_many rdf:type mf:NegativeSyntaxTest11 ; + mf:name "Too many values in a VALUE clause compared to the number of variables" ; + mf:action . + +:test_bad_values_too_few rdf:type mf:NegativeSyntaxTest11 ; + mf:name "Too few values in a VALUE clause compared to the number of variables" ; + mf:action . diff --git a/sparql/sparql11/syntax-query/syn-bad-values-too-few.rq b/sparql/sparql11/syntax-query/syn-bad-values-too-few.rq new file mode 100644 index 00000000..28b92ae0 --- /dev/null +++ b/sparql/sparql11/syntax-query/syn-bad-values-too-few.rq @@ -0,0 +1 @@ +SELECT * WHERE { VALUES (?a ?b) { (1) } } \ No newline at end of file diff --git a/sparql/sparql11/syntax-query/syn-bad-values-too-many.rq b/sparql/sparql11/syntax-query/syn-bad-values-too-many.rq new file mode 100644 index 00000000..d2275da6 --- /dev/null +++ b/sparql/sparql11/syntax-query/syn-bad-values-too-many.rq @@ -0,0 +1 @@ +SELECT * WHERE { VALUES (?a ?b) { (1 2 3) } } \ No newline at end of file