Skip to content

convert docstring examples to unittests [setops]#4066

Merged
quickfur merged 1 commit intodlang:masterfrom
wilzbach:examples_to_unittest_setops
Mar 9, 2016
Merged

convert docstring examples to unittests [setops]#4066
quickfur merged 1 commit intodlang:masterfrom
wilzbach:examples_to_unittest_setops

Conversation

@wilzbach
Copy link
Contributor

@wilzbach wilzbach commented Mar 8, 2016

Separated from #4044 as this might be a controversial edit.

This is part of my move to put more examples into unittests and here I put a modified version of the docstring after the example.

For the first example I preferred to show code instead of showing that how to generate the largestPartialIntersection with more than one item - I think this is nice, because it shows that the highest is the last element of the array and that one really has to duplicate the array to avoid it being emptied.

@DmitryOlshansky
Copy link
Member

LGTM

@quickfur
Copy link
Member

quickfur commented Mar 9, 2016

LGTM, merge ahoy!

@quickfur
Copy link
Member

quickfur commented Mar 9, 2016

Auto-merge toggled on

quickfur pushed a commit that referenced this pull request Mar 9, 2016
convert docstring examples to unittests [setops]
@quickfur quickfur merged commit afc4028 into dlang:master Mar 9, 2016
@wilzbach wilzbach deleted the examples_to_unittest_setops branch March 10, 2016 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants