Skip to content

Comments

Fix deprecations in d_do_test#6869

Merged
dlang-bot merged 1 commit intodlang:masterfrom
wilzbach:fix-d_do_test
Jun 11, 2017
Merged

Fix deprecations in d_do_test#6869
dlang-bot merged 1 commit intodlang:masterfrom
wilzbach:fix-d_do_test

Conversation

@wilzbach
Copy link
Contributor

@wilzbach wilzbach commented Jun 8, 2017

The old string functions from D1 have been deprecated, time to fix the deprecations.

test/d_do_test.d Outdated
refoutput = refoutput[pos + 3 ..$];
output = output[pos..$];
munch(output, "0123456789");
auto p = output.byCodeUnit.countUntil!(e => digits.canFind(e));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In theory countUntil("0", "1", "2", "3", "4", "5", "6", "7", "8", "9") might be marginally faster, but it shouldn't matter at all here.

@CyberShadow
Copy link
Member

@wilzbach
Copy link
Contributor Author

wilzbach commented Jun 9, 2017

@wilzbach What's causing the coverage changes?

No idea, but when I looked at other PRs I did find some repeatedly occurring random coverage changes, so I think it's best if we go with a similar pragmatic solution as for Phobos:

#6879

@dlang-bot dlang-bot merged commit c6c3c11 into dlang:master Jun 11, 2017
@wilzbach wilzbach deleted the fix-d_do_test branch December 19, 2017 09:25
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.

4 participants