!! Version 2 # Force the test runner to ensure the extension is loaded !! functionhooks af_map !! endfunctionhooks # This file tests the #af_map parser function !! test Test empty list !! wikitext {{#af_print: {{#af_map: {{AF_EMPTY}} | v | {{{v}}} }} }} !! html !! end !! test Test singleton list !! wikitext {{#af_print: {{#af_map: {{#af_list: a }} | v | {{{v}}}-edited }} }} !! html
ArrayFunctions (#af_map): Expected at least 3 positional parameters, 2 given.
!! end !! test Test too many arguments !! wikitext {{#af_map: {{#af_list: {{#af_list: a }} | foo }} | v | {{{v}}} | d }} !! htmlArrayFunctions (#af_map): Expected at most 3 positional parameters, 4 given.
!! end