mediawiki-extensions-AbuseF.../tests/parserTests/contains-all.t
Daimona Eaytoy 7b06be0204 Allow dangling commas in variargs
This is because there are many filters using this feature. Moreover, it
could make it a little easier to add new arguments, just like dangling
commas in PHP arrays do.
Also re-align the CachingParser code of doLevelFunctions to the one in
the old Parser.

Bug: T153251
Change-Id: Ie4325159f47310788da57415a5e36e62aa4efad0
2019-09-07 11:19:14 +02:00

11 lines
215 B
Raku

contains_all("the foo is on the bar", "foo", "is on", "bar") &
!(contains_all(['foo', 'bar', 'hey'], 'foo', 'bar', 'sup')) &
contains_all([1, 2, 3], '1', '2', '3') &
contains_all(
'base',
'b',
'a',
's',
'e',
)