-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes to collection tests #615
base: master
Are you sure you want to change the base?
Conversation
…does not need to be the element type of the collection if “default:” is used. Collections test suite was too strict with add! and remove!: OD implements them on <collection>, not just <sequence>.
This is related to #399. |
Does this create any new failures with current OD or does it fix some? |
In the collections-protocol-test-suite of common-dylan-test-suite-app, this pull request clears up two failing tests and adds a number of new failing tests. It makes the tests on It makes some tests on |
According to the function documentation, the return value of The return value of
But a few paragraphs down, the DRM continues:
Later, the "Limited Collection Types" section discusses the return value of
I take those disclaimers to mean that when the |
Well, presumably you can at least narrow it down to: type-union(T, singleton(defaultArg)) On Wed, Dec 25, 2013 at 7:22 PM, Dustin Voss [email protected]:
|
Surely so, though the DRM doesn't say it flat-out. |
Collections test suite was incorrect for
element
: the return value does not need to be the element type of the collection ifdefault:
is used.Collections test suite was too strict with
add!
andremove!
: OD implements them on<collection>
, not just<sequence>
.