Help language development. Donate to The Perl Foundation

Text::Utils cpan:TBROWDER last updated on 2020-02-12

t/020-count-substrs.t
use v6;
use Test;

use Text::Utils :ALL;

plan 3;

is count-substrs('23:::', '::'), 2;
is count-substrs('d:efa33:23:::', ':'), 5;
is count-substrs('d-:efa33:23:-::', '-:'), 2;