Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Test general concepts #35

Closed
6 tasks
wschella opened this issue May 20, 2019 · 2 comments
Closed
6 tasks

Test general concepts #35

wschella opened this issue May 20, 2019 · 2 comments
Labels
difficulty:hard Implementing or fixing this will require a serious amount of work and / or thinking priority:high spec test
Milestone

Comments

@wschella
Copy link
Member

There are a lot of general concepts (error handling, type promotion, EBV), that are implemented, but at the best loosely tested trough some unrelated tests.

Things we should definitely still test:

  • Error handeling
  • Subtype subsitution
  • Type promotion
  • Handling of nonlexicals
  • Coercing to EBV
  • Exists / aggregate hook
@wschella wschella added difficulty:hard Implementing or fixing this will require a serious amount of work and / or thinking priority:high test spec labels May 20, 2019
@wschella wschella added this to the Fully tested milestone May 20, 2019
@Tpt Tpt mentioned this issue Jun 1, 2022
@jitsedesmet
Copy link
Member

jitsedesmet commented Sep 13, 2023

My report:

For error handling, we should have the error table. Even though we could write more tests, our test suite allows us to easily add them, and there are already a few locations where we use them. I suggest we ignore this for now.

For Subtype substitution, I will implement some more tests.

Type promotion has some test introduced in https://github.com/comunica/sparqlee/pull/103/files#diff-4db5dd024582568f1ac1245e2af228c5611a35cca8d33e741db5ac081ddd2c28

Handling of non-Lexical forms has some minimal tests. (for example, in addition)

Will add some tests regarding Coercing to EBV. (There already were some, but I wrote some more)

Exists has a test https://github.com/jitsedesmet/comunica/blob/master/packages/expression-evaluator/test/integration/misc/Exists-test.ts
I don't think we have a test for the aggregate hook. The creation of a Comunica engine test might bé the best way to test them. (@rubensworks now that sparqlee is a package within Comunica this should suffice to close this issue?)

@rubensworks
Copy link
Member

I don't think we have a test for the aggregate hook. The creation of a Comunica engine test might bé the best way to test them.

Sounds good!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
difficulty:hard Implementing or fixing this will require a serious amount of work and / or thinking priority:high spec test
Projects
None yet
Development

No branches or pull requests

3 participants