1,250
edits
Changes
Jump to navigation
Jump to search
The functionality splits in the following examples: <br>Module supports numbers with max 3 digits.
Invoke: == Simple question =={| class="wikitable"|-! Expected !! Actual|-| 150 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph150}} <br>Invoke: |-| 15 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph15}} <br>Invoke: |-| 7 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph7}}<br>Invoke: |-| 150 || {{#invoke:stringHelpers|getParagraphFromQuestion|150}} <br>Invoke: |-| 15 || {{#invoke:stringHelpers|getParagraphFromQuestion|15}} <br>Invoke: |-| 7 || {{#invoke:stringHelpers|getParagraphFromQuestion|7}} <br>|}
Invoke: == Complex question == {| class="wikitable"|-! Expected !! Actual|-| 6 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph6-7}}<br>Invoke: |-| 7 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph7-10}}<br>Invoke: |-| 10 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph10-11}}<br>Invoke: |-| 99 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph99-100}}<br>Invoke: |-| 101 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph101-113}}<br>Invoke: |-| 6 || {{#invoke:stringHelpers|getParagraphFromQuestion|6-7}}<br>Invoke: |-| 7|| {{#invoke:stringHelpers|getParagraphFromQuestion|7-10}}<br>Invoke: |-| 10 || {{#invoke:stringHelpers|getParagraphFromQuestion|10-11}}<br>Invoke: |-| 99 || {{#invoke:stringHelpers|getParagraphFromQuestion|99-110}}<br>Invoke: |-| 101 || {{#invoke:stringHelpers|getParagraphFromQuestion|101-113}}|}
no edit summary
= Tests =