Skip to content

Commit

Permalink
Merge pull request #3997 from klickverbot/fix-std-string-test
Browse files Browse the repository at this point in the history
lineSplitter: Remove gratuitous filesystem access from unit test
  • Loading branch information
kyllingstad committed Feb 14, 2016
2 parents 0dfff30 + 3667b1e commit 8388e5e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions std/string.d
Original file line number Diff line number Diff line change
Expand Up @@ -2811,15 +2811,10 @@ auto lineSplitter(KeepTerminator keepTerm = KeepTerminator.no, Range)(auto ref R

unittest
{
import std.file : DirEntry;
import std.algorithm.comparison : equal;

auto s = "std/string.d";
auto de = DirEntry(s);
auto i = de.lineSplitter();
auto j = s.lineSplitter();

assert(equal(i, j));
auto as = TestAliasedString(s);
assert(equal(s.lineSplitter(), as.lineSplitter()));
}

/++
Expand Down

0 comments on commit 8388e5e

Please sign in to comment.