Difference between revisions of "Module:StringHelpers/doc"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
The functionality splits in the following examples: <br> | The functionality splits in the following examples: <br> | ||
| + | = Simple question = | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! Expected !! Actual | ||
| + | |- | ||
| + | | 150 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph150}} | ||
| + | |- | ||
| + | | 15 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph15}} | ||
| + | |- | ||
| + | | 7 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph7}} | ||
| + | |- | ||
| + | | 150 || {{#invoke:stringHelpers|getParagraphFromQuestion|150}} | ||
| + | |- | ||
| + | | 15 || {{#invoke:stringHelpers|getParagraphFromQuestion|15}} | ||
| + | |- | ||
| + | | 7 || {{#invoke:stringHelpers|getParagraphFromQuestion|7}} | ||
| + | |} | ||
| − | + | = Complex question = | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | {| class="wikitable" | |
| − | + | |- | |
| − | + | ! Expected !! Actual | |
| − | + | |- | |
| − | + | | 6 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph6-7}} | |
| − | + | |- | |
| − | + | | 7 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph7-10}} | |
| − | + | |- | |
| − | + | | 10 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph10-11}} | |
| − | + | |- | |
| + | | 99 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph99-100}} | ||
| + | |- | ||
| + | | 101 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph101-113}} | ||
| + | |- | ||
| + | | 6 || {{#invoke:stringHelpers|getParagraphFromQuestion|6-7}} | ||
| + | |- | ||
| + | | 7|| {{#invoke:stringHelpers|getParagraphFromQuestion|7-10}} | ||
| + | |- | ||
| + | | 10 || {{#invoke:stringHelpers|getParagraphFromQuestion|10-11}} | ||
| + | |- | ||
| + | | 99 || {{#invoke:stringHelpers|getParagraphFromQuestion|99-110}} | ||
| + | |- | ||
| + | | 101 || {{#invoke:stringHelpers|getParagraphFromQuestion|101-113}} | ||
| + | |} | ||
Revision as of 17:58, 12 April 2020
The functionality splits in the following examples:
Simple question
| Expected | Actual |
|---|---|
| 150 | 150 |
| 15 | 15 |
| 7 | 7 |
| 150 | 150 |
| 15 | 15 |
| 7 | 7 |
Complex question
| Expected | Actual |
|---|---|
| 6 | 6 |
| 7 | 7 |
| 10 | 10 |
| 99 | 99 |
| 101 | 101 |
| 6 | 6 |
| 7 | 7 |
| 10 | 10 |
| 99 | 99 |
| 101 | 101 |