Fixes to collection tests#615
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 notifications@github.comwrote:
|
|
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>.