We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f22cc26 + 1d2b992 commit 613850cCopy full SHA for 613850c
1 file changed
std/range/package.d
@@ -9115,7 +9115,7 @@ public:
9115
{
9116
static if (needsEndTracker)
9117
9118
- if (poppedElems < windowSize)
+ if (nextSource.empty)
9119
hasShownPartialBefore = true;
9120
}
9121
else
@@ -10095,6 +10095,15 @@ public:
10095
assert("ab cd".splitter(' ').slide!(No.withPartial)(2).equal!equal([["ab", "cd"]]));
10096
10097
10098
+// https://issues.dlang.org/show_bug.cgi?id=23976
10099
+@safe unittest
10100
+{
10101
+ import std.algorithm.comparison : equal;
10102
+ import std.algorithm.iteration : splitter;
10103
+
10104
+ assert("1<2".splitter('<').slide(2).equal!equal([["1", "2"]]));
10105
+}
10106
10107
private struct OnlyResult(Values...)
10108
if (Values.length > 1)
10109
0 commit comments