COMPLETE THIS SECTION
Each test will have (atleast one) reference to a query. The query element may contain the following sub-elements
A posisitve parser test is a test that a versa parser should not raise an exception when parsed. The test may have the following properties
A negative parser test is a test that a versa parser should raise an exception when parsed. The test may have the following properties
A posisitve query test is a test that applies a query to a model and expects certain results.
The manifest for all of the test cases can be found here
| Expression | Error Message |
|---|---|
| Query:
@variable x = [1,2,3];$x[1] |
|
| Query:
@variable x = [1,2,3];$x[-1] |
|
| Query:
@variable x = "abc";$x[1] |
|
| Query:
@variable x = "abc";$x[-1] |
|
| Query:
@variable x = [1,2,3];$x[:1] |
|
| Query:
@variable x = [1,2,3];$x[:-2] |
|
| Query:
@variable x = "abc";$x[:1] |
|
| Query:
@variable x = "abc";$x[:-1] |
|
| Query:
@variable x = [1,2,3];$x[1:] |
|
| Query:
@variable x = [1,2,3];$x[-2:] |
|
| Query:
@variable x = "abc";$x[1:] |
|
| Query:
@variable x = "abc";$x[-1:] |
|
| Query:
@variable x = [1,2,3,4];$x[1:2] |
|
| Query:
@variable x = [1,2,3,4];$x[-3:-2] |
|
| Query:
@variable x = "abcd";$x[1:2] |
|
| Query:
@variable x = "abcd";$x[-3:-2] |
| Test Type | Test Case | Issue | Description | Status |
|---|---|---|---|---|
| PositiveQueryTest | functions/Slicing.rdf#slicing001 | single slice list | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing001a | negative single slice list | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing002 | single slice string | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing002a | negative single slice string | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing003 | head slice list | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing003a | negative head slice list | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing004 | head slice string | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing004a | negative head slice string | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing005 | tail slice list | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing005a | negative tail slice list | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing006 | tail slice string | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing006a | negative tail slice string | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing007 | middle slice list | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing007a | negative middle slice list | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing008 | middle slice string | ACCEPTED | |
| PositiveQueryTest | functions/Slicing.rdf#slicing008a | negative middle slice string | ACCEPTED |