-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
featureRequires new functionality or documentationRequires new functionality or documentationspecsRelates to testworks specsRelates to testworks specs
Milestone
Description
In the System test suite the spec says:
open generic-function \= (<date>, <date>) => (<boolean>);
The failure says:
date-protocol-functions-test failed
function = argument 0 type {class <object>} is a supertype of the specified
type {class <date>} failed [expression "subtype?(actual, spec)" evaluates
to #f, not a true value.]
(The sense of sub/super-type in the error is incorrect but that's not the issue here.)
This is checking the wrong thing. What this spec wants to check is that there is a specific method on = for (<date>, <date>) but what it's actually checking is that the = gf exists and is defined on parameters that are subtypes of <date>.
I propose a new spec:
generic-function-method \= (<date>, <date>) => (<boolean>);
to do the needful here.
Metadata
Metadata
Assignees
Labels
featureRequires new functionality or documentationRequires new functionality or documentationspecsRelates to testworks specsRelates to testworks specs