Template:Str endswith/testcases

From MOASSpedia
Jump to navigation Jump to search
Test1
{{Str endswith|foo (bar)|(bar)}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Test2
{{Str endswith|foo|bar}}

{{Str endswith}}


{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Test3
{{Str endswith|(bar)|foo (bar)}}

{{Str endswith}}


{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Test4
{{Str endswith|foo bar   |   bar}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Test5
{{Str endswith|foo bar   |   bar}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Border case 1
{{Str endswith}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Border case 2
{{Str endswith||}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Border case 3
{{Str endswith|| }}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Border case 4
{{Str endswith| |}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Border case 5
{{Str endswith| |}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Border case 6
{{Str endswith|}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Border case 7
{{Str endswith|2=}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Border case 8
{{Str endswith|foo|}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Border case 9
{{Str endswith||foo}}

{{Str endswith}}


{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Border case 10
{{Str endswith|2=foo}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Unicode test 1
{{Str endswith|日本語|語}}

{{Str endswith}}

yes

{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist

Unicode test 2
{{Str endswith|語|日本語}}

{{Str endswith}}


{{Str endswith/sandbox}}

Error: expandTemplate: template "Str endswith/sandbox" does not exist