[Bug 6196] New: [FT] TestSuite - Syntax


           Summary: [FT] TestSuite - Syntax
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: All
               URL: http://basex.org/
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Full Text 1.0
        AssignedTo: jim.melton@acm.org
        ReportedBy: christian.gruen@gmail.com
         QAContact: public-qt-comments@w3.org


some comments on the current test suite; to avoid too many small bug reports, I
have assembled some minor issues in this post.

[1] ExpectedResults/.../2.3-ScoreVariables

Wrong path, should be changed to

[2] .../examples-23-*.txt

OLD: Somes usability is
NEW: Sometimes usability 

[3] xpath-full-text-10.xml & ExpectedResults//*

OLD: FTAnyallOptions
NEW: FTAnyallOption

...this typo also affects the XQFT specification.

[4] ExpectedResults/.../FTWords/*

OLD: containment is checked.</p>
NEW: containment is checked. </p>

OLD: FTAnyallOption</nt>produces
NEW: FTAnyallOption</nt> produces

OLD: FTWordsValue</nt>is
NEW: FTWordsValue</nt> is

[5] FTPrimary-FTWords-*

OLD: //div2[id="ftwords"]
NEW: //div2[@id="ftwords"]

[6] FTPrimary-FTWords-q1b.xq

OLD: $p ftcontains { $input-context }
NEW: $p ftcontains { $search-token }

..but indeed a query like the following - which should always yield true -
could be an interesting one:

 doc("doc.xml") ftcontains { doc("doc.xml") }

[7] FTPrimary-FTWords-q4b.xq

OLD: <paragraphs></paragraphs>
NEW: </paragraphs>

[8] FTAnd-andor.xq

OLD: ftor "ninja"]
NEW: ftor "ninja"]/title

[9] character-queries-results-q2.xml

OLD: <book number="2">...</book>
...This book should be exluded from the result as the wildcard string "resume."
will not accept "Resume testing".

[10] logical-queries-results-q2.xml

OLD: <book number="2">...</book> 
...should be excluded as well; "software" is not found here (so "web" ftand
"software" will yield false)

[11] logical-queries-results-q5.xml

OLD: <book number="2">...</book> 
...should be excluded as well, as "plan" is actually found here (so "usability"
ftand ftnot "plan" will yield false)

[12] FTSelection-Weight-q1e.xq

...the error code "FTDY0016" is not accepted as a result.

[13] wildcard-queries-results-q3.xq / q4.xq

...a closing parenthesis is missing at the end of the queries.

[14] FTAnd-bad2.xq

OLD: Error "XPTY0004"
NEW: Error "XPST0003" 

[15] FTSelection-Weight-q3.xq

OLD: Error "FTDY0016"
NEW: Error "XPTY0004"

...according to the specs, FTDY0016 is only thrown for negative numbers here.

Feel free to ask if you cannot follow my 'verbose' comments..

Christian, BaseX Team 

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 31 October 2008 07:43:26 UTC