!! Version 2
# Force the test runner to ensure the extension is loaded
!! functionhooks
af_merge
!! endfunctionhooks
# This file tests the #af_merge parser function
!! test
Test single array
!! wikitext
{{#af_print: {{#af_merge: {{#af_list: a | b | c }} }} }}
!! html
!! end
!! test
Test two arrays
!! wikitext
{{#af_print: {{#af_merge: {{#af_list: a | b | c }} | {{#af_list: d | e | f }} }} }}
!! html
- 0: a
- 1: b
- 2: c
- 3: d
- 4: e
- 5: f
!! end
!! test
Test three arrays
!! wikitext
{{#af_print: {{#af_merge: {{#af_list: a | b | c }} | {{#af_list: d | e | f }} | {{#af_list: g | h | i }} }} }}
!! html
- 0: a
- 1: b
- 2: c
- 3: d
- 4: e
- 5: f
- 6: g
- 7: h
- 8: i
!! end