File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -9115,7 +9115,7 @@ public:
91159115 {
91169116 static if (needsEndTracker)
91179117 {
9118- if (poppedElems < windowSize )
9118+ if (nextSource.empty )
91199119 hasShownPartialBefore = true ;
91209120 }
91219121 else
@@ -10095,6 +10095,15 @@ public:
1009510095 assert (" ab cd" .splitter(' ' ).slide! (No.withPartial)(2 ).equal! equal([[" ab" , " cd" ]]));
1009610096}
1009710097
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+
1009810107private struct OnlyResult (Values... )
1009910108if (Values.length > 1 )
1010010109{
You can’t perform that action at this time.
0 commit comments