Template:Str index/testcases

< Template:Str index
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Testing {{str index/sandbox}} and {{str index}}

{{str index/sandbox}} Template:Str index/sandbox
{{str index}} String Module Error: String index out of range
{{str index/sandbox|abc}} Template:Str index/sandbox
{{str index|abc}} String Module Error: String index out of range
{{str index/sandbox|abc|2}} Template:Str index/sandbox
{{str index|abc|2}} b

{{str index/sandbox|abc|3}} Template:Str index/sandbox
{{str index|abc|3}} c
{{str index/sandbox|abc|4}} Template:Str index/sandbox
{{str index|abc|4}} String Module Error: String index out of range
{{str index/sandbox|abc|5}} Template:Str index/sandbox
{{str index|abc|5}} String Module Error: String index out of range
{{str index/sandbox|abc|6}} Template:Str index/sandbox
{{str index|abc|6}} String Module Error: String index out of range

={{str index/sandbox|a c|2}}= =Template:Str index/sandbox=
={{str index|a c|2}}= = =
{{str index/sandbox|abc|4}} Template:Str index/sandbox
{{str index|abc|4}} String Module Error: String index out of range
{{str index/sandbox|abc|5}} Template:Str index/sandbox
{{str index|abc|5}} String Module Error: String index out of range
{{str index/sandbox|abc|6}} Template:Str index/sandbox
{{str index|abc|6}} String Module Error: String index out of range

{{str index/sandbox|abc|0}} Template:Str index/sandbox
{{str index|abc|0}} String Module Error: String index out of range
{{str index/sandbox|abc|1}} Template:Str index/sandbox
{{str index|abc|1}} a
{{str index/sandbox|abc|1}} Template:Str index/sandbox
{{str index|abc|1}} a

{{str index/sandbox|abc|0}} Template:Str index/sandbox
{{str index|abc|0}} String Module Error: String index out of range
{{str index/sandbox|abc|1}} Template:Str index/sandbox
{{str index|abc|1}} a
{{str index/sandbox|abc|2.25}} Template:Str index/sandbox
{{str index|abc|2.25}} Lua error in ustring.lua at line 361: attempt to perform arithmetic on field '?' (a nil value).
{{str index/sandbox|abc|1.75}} Template:Str index/sandbox
{{str index|abc|1.75}} Lua error in ustring.lua at line 361: attempt to perform arithmetic on field '?' (a nil value).
{{str index/sandbox|abc|-1}} Template:Str index/sandbox
{{str index|abc|-1}} c
{{str index/sandbox|abc|-2}} Template:Str index/sandbox
{{str index|abc|-2}} b