Skip to content
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

Make more modules publicly runnable on dlang.org #4966

Merged
merged 1 commit into from Jan 7, 2017

Conversation

wilzbach
Copy link
Member

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
Member 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

@@ -3934,7 +3934,6 @@ private T octal(T)(const string num)
return value;
}

///
@system unittest
Copy link
Member 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
Member 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

@@ -1953,7 +1922,6 @@ ElementType!(A) pop (A) (ref A a) if (isDynamicArray!(A) && !isNarrowString!(A)
return e;
}

///
unittest
{
auto array = [0, 1, 2, 3];
Copy link
Member 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)

@@ -1846,7 +1818,6 @@ T[] substr (T) (T[] str, ptrdiff_t start = 0, ptrdiff_t length = ptrdiff_t.min)
return str[start .. end];
}

///
unittest
{
Copy link
Member Author

Choose a reason for hiding this comment

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

ditto: private method

@@ -1898,7 +1869,6 @@ int compareFirstN (alias pred = "a < b", S1, S2) (S1 s1, S2 s2, size_t length, b
return caseInsensitive ? slice1.icmp(slice2) : slice1.cmp(slice2);
}

///
unittest
{
Copy link
Member Author

Choose a reason for hiding this comment

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

ditto: private method

@@ -1929,7 +1899,6 @@ auto grep (Range, Regex) (Range input, Regex pattern, bool invert = false)
return filter!(dg)(input);
}

///
unittest
Copy link
Member 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
Copy link
Member 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

@wilzbach wilzbach added this to the 2.073.0-b0 milestone Dec 29, 2016
@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
3 participants