mediawiki-extensions-AbuseF.../tests/parserTests/count.t
Bartosz Dziewoński 7d83540527 Add some tests for behavior of 'count()' function
Change-Id: I29a6c91d0780dc9a1eaee6d29d3b1f9c9c708df7
2016-04-17 08:18:29 +02:00

8 lines
214 B
Raku

count("a,b,c,d") = 4 &
count(",", "a,b,c,d") = 3 &
count("", "abcd") = 0 &
count("a", "abab") = 2 &
count("ab", "abab") = 2 &
/* This probably shouldn't count overlapping occurrences... */
count("aa", "aaaaa") = 4