BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
684 stars 265 forks source link

Fixes for failing tests with respect to function coercion #2286

Closed GuntherRademacher closed 6 months ago

GuntherRademacher commented 7 months ago

This comprises 3 commits:

GuntherRademacher commented 7 months ago

Resetting to draft status, because further changes are necessary.

GuntherRademacher commented 6 months ago

The latest commits complete the changes. FuncType now is no longer a superclass of MapType and ArrayType, rather there now is a new abstract superclass FType for the three of them:

Type
 │
 └── FType
     │
     ├── FuncType
     ├── MapType
     └── ArrayType

Also Type now has a new method funcType() that returns the FuncType that can be derived from a Type, if any.

These changes now pass all BaseX and QT4 tests, fixing the seven QT4 tests mentioned earlier. Also some BaseX tests have been adapted due to incorrect expectations.