!! Version 2 # Force the test runner to ensure the extension is loaded !! functionhooks af_unique !! endfunctionhooks # This file tests the #af_unique parser function !! test Test unique !! wikitext {{#af_print: {{#af_unique: {{#af_list: a | b | b | b | c | d | d }} }} }} !! html !! end !! test Test too many arguments !! wikitext {{#af_unique: {{#af_list: a | b | c }} | d }} !! html

ArrayFunctions (#af_unique): Expected at most 1 positional parameter, 2 given.

!! end