Skip to content

Commit 48a1792

Browse files
committed
add missing imports for "old" std.regex unittests
- old tests after reverting BitNFA didn't have isolated runnable unittests
1 parent a3ba8a6 commit 48a1792

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

std/regex/package.d

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ public:
625625
///
626626
unittest
627627
{
628+
import std.range.primitives : popFrontN;
629+
628630
auto c = matchFirst("@abc#", regex(`(\w)(\w)(\w)`));
629631
assert(c.pre == "@"); // Part of input preceding match
630632
assert(c.post == "#"); // Immediately after match
@@ -1598,6 +1600,7 @@ unittest
15981600
unittest
15991601
{
16001602
import std.algorithm.comparison : equal;
1603+
import std.typecons;
16011604

16021605
auto pattern = regex(`([\.,])`);
16031606

0 commit comments

Comments
 (0)