Skip to content

Make more modules publicly runnable on dlang.org#4966

Merged
dlang-bot merged 1 commit intodlang:masterfrom
wilzbach:public-editable-modules
Jan 7, 2017
Merged

Make more modules publicly runnable on dlang.org#4966
dlang-bot merged 1 commit intodlang:masterfrom
wilzbach:public-editable-modules

Conversation

@wilzbach
Copy link
Contributor

Follow-up to #4943: this PR reduces the module exclusion for modules that can be run on dlang.org

For this all tests within a module need to pass separately without the module.

Copy link
Contributor Author

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remarks

}

///
@system unittest
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a private method - there's no point in exposing in trying to expose the unittest

*
* Returns: the maximum value
*/
T max (T) (T[] arr)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was superseded by maxElement

///
unittest
{
auto array = [0, 1, 2, 3];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like there is already shift within Phobos ;-)
(though this one is private)


///
unittest
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto: private method


///
unittest
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto: private method

}

///
unittest
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto: private method

@wilzbach wilzbach force-pushed the public-editable-modules branch 2 times, most recently from 602b23e to ff1f2d2 Compare December 19, 2016 05:37
@wilzbach
Copy link
Contributor Author

So if someone is interested in the motivation/rationale, please have a look at e.g.

https://dlang.org/phobos-prerelease/std_algorithm_searching.html#.minElement

@MartinNowak MartinNowak force-pushed the public-editable-modules branch from ff1f2d2 to 18ecb6b Compare January 6, 2017 22:30
@MartinNowak
Copy link
Member

rebased

@MartinNowak MartinNowak removed this from the 2.073.0-b0 milestone Jan 6, 2017
@dlang-bot dlang-bot merged commit 89c3487 into dlang:master Jan 7, 2017
@wilzbach wilzbach deleted the public-editable-modules branch January 7, 2017 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants