Replies: 1 comment 6 replies
-
Queries using answer descriptions (quads) are a notation to describe the answers of a query. They are used to describe examples, test cases and bug reports. They are essentially a transcript of a top-level interaction plus some additional features, like l#1:
So this is a test that ensures that the first three leaf answers look exactly like that ( Or consider ph#1:
So either there is one solution Compared to test frameworks like plunit, quads have much less syntactic overhead - most of which is part of the top-level already - and fit into program text directly. A query may also have more than one answer description. This is useful for bug reports like #2398
So the first answer description shows the current unexpected answer and adds the comment There are still quite a lot of open questions when it comes to more complex queries, in particular in the context of answer constraints. Hopefully, all this will sort out. |
Beta Was this translation helpful? Give feedback.
-
Continued from PR on library(testing).
What are the semantics of testing in Prolog? What should they be?
What are "quads"? What role do they play in testing?
Beta Was this translation helpful? Give feedback.
All reactions