Template:Count/testcases: Difference between revisions
From The Pokemon Insurgence Wiki
(Testing Random) |
mNo edit summary |
||
Line 1: | Line 1: | ||
Note: {{Count/testcase1}} tests nesting of templates calling {{Count}}.<br /> | |||
{| class=wikitable width=100% | {| class=wikitable width=100% | ||
Line 6: | Line 6: | ||
! width=50% | Result | ! width=50% | Result | ||
|- | |- | ||
| {{Count|A|B||D}} | | <big><nowiki>{{Count|A|B||D}}</nowiki></big> | ||
| {{Count|A|B||D}} | | {{Count|A|B||D}} | ||
|- | |- | ||
| {{Count/testcase1}} | | <big><nowiki>{{Count/testcase1}}</nowiki></big> | ||
| {{Count/testcase1}} | | {{Count/testcase1}} | ||
|- | |- | ||
| {{Count/testcase1|base{{=}}1}} | | <big><nowiki>{{Count/testcase1|base{{=}}1}}</nowiki></big> | ||
| {{Count/testcase1|base=1}} | | {{Count/testcase1|base=1}} | ||
|- | |- | ||
| {{Count/testcase1|base{{=}}0}} | | <big><nowiki>{{Count/testcase1|base{{=}}0}}</nowiki></big> | ||
| {{Count/testcase1|base=0}} | | {{Count/testcase1|base=0}} | ||
|- | |- | ||
| {{Count/testcase1|abc}} | | <big><nowiki>{{Count/testcase1|abc}}</nowiki></big> | ||
| {{Count/testcase1|abc}} | | {{Count/testcase1|abc}} | ||
|- | |- | ||
| {{Count/testcase1|abc|base{{=}}0}} | | <big><nowiki>{{Count/testcase1|abc|base{{=}}0}}</nowiki></big> | ||
| {{Count/testcase1|abc|base=0}} | | {{Count/testcase1|abc|base=0}} | ||
|- | |- | ||
| {{Count/testcase1|abc|base{{=}}1}} | | <big><nowiki>{{Count/testcase1|abc|base{{=}}1}}</nowiki></big> | ||
| {{Count/testcase1|abc|base=1}} | | {{Count/testcase1|abc|base=1}} | ||
|- | |- | ||
| {{Count/testcase1||DEF}} | | <big><nowiki>{{Count/testcase1||DEF}}</nowiki></big> | ||
| {{Count/testcase1||DEF}} | | {{Count/testcase1||DEF}} | ||
|- | |- | ||
| {{Count/testcase1|abc|DEF}} | | <big><nowiki>{{Count/testcase1|abc|DEF}}</nowiki></big> | ||
| {{Count/testcase1|abc|DEF}} | | {{Count/testcase1|abc|DEF}} | ||
|- | |- | ||
| {{Count/testcase1|abc|DEF|}} | | <big><nowiki>{{Count/testcase1|abc|DEF|}}</nowiki></big> | ||
| {{Count/testcase1|abc|DEF|}} | | {{Count/testcase1|abc|DEF|}} | ||
|- | |- | ||
| {{Count/testcase1|abc|DEF|ghi}} | | <big><nowiki>{{Count/testcase1|abc|DEF|ghi}}</nowiki></big> | ||
| {{Count/testcase1|abc|DEF|ghi}} | | {{Count/testcase1|abc|DEF|ghi}} | ||
|- | |- | ||
| {{Count/testcase1|abc||ghi}} | | <big><nowiki>{{Count/testcase1|abc||ghi}}</nowiki></big> | ||
| {{Count/testcase1|abc||ghi}} | | {{Count/testcase1|abc||ghi}} | ||
|- | |- | ||
| {{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz#}} | | <big><nowiki>{{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz#}}</nowiki></big> | ||
| {{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz#}} | | {{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz#}} | ||
|- | |- | ||
| {{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%}} | | <big><nowiki>{{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%}}</nowiki></big> | ||
| {{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%}} | | {{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%}} | ||
|- | |- | ||
| {{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%|^&*|()_|+:"|123|456|789|000}} | | <big><nowiki>{{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%|^&*|()_|+:"|123|456|789|000}}</nowiki></big> | ||
| {{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%|^&*|()_|+:"|123|456|789|000}} | | {{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%|^&*|()_|+:"|123|456|789|000}} Only counts to 10 right now! | ||
|- | |- | ||
| {{Count/testcase1|abc||ghi||mno||stu||yz@|}} | | <big><nowiki>{{Count/testcase1|abc||ghi||mno||stu||yz@|}}</nowiki></big> | ||
| {{Count/testcase1|abc||ghi||mno||stu||yz@|}} | | {{Count/testcase1|abc||ghi||mno||stu||yz@|}} | ||
|- | |- | ||
| {{Count/testcase1||DEF||JKL||PQR||VWX||#$%}} | | <big><nowiki>{{Count/testcase1||DEF||JKL||PQR||VWX||#$%}}</nowiki></big> | ||
| {{Count/testcase1||DEF||JKL||PQR||VWX||#$%}} | | {{Count/testcase1||DEF||JKL||PQR||VWX||#$%}} | ||
|- | |- | ||
| {{Count/testcase1|DEF|JKL|PQR|VWX|#$%}} | | <big><nowiki>{{Count/testcase1|DEF|JKL|PQR|VWX|#$%}}</nowiki></big> | ||
| {{Count/testcase1|DEF|JKL|PQR|VWX|#$%}} | | {{Count/testcase1|DEF|JKL|PQR|VWX|#$%}} | ||
|- | |- | ||
| {{Count/testcase1||||||||||#$%}} | | <big><nowiki>{{Count/testcase1||||||||||#$%}}</nowiki></big> | ||
| {{Count/testcase1||||||||||#$%}} | | {{Count/testcase1||||||||||#$%}} | ||
|- | |- | ||
| {{Count/testcase1|||||||||}} | | <big><nowiki>{{Count/testcase1|||||||||}}</nowiki></big> | ||
| {{Count/testcase1||||||||||}} | | {{Count/testcase1||||||||||}} | ||
|- | |- | ||
| {{Count/testcase1||||||||||base{{=}}0}} | | <big><nowiki>{{Count/testcase1||||||||||base{{=}}0}}</nowiki></big> | ||
| {{Count/testcase1|||||||||||base=0}} | | {{Count/testcase1|||||||||||base=0}} | ||
|- | |- | ||
| {{Count/testcase1||||||||||base{{=}}1}} | | <big><nowiki>{{Count/testcase1||||||||||base{{=}}1}}</nowiki></big> | ||
| {{Count/testcase1|||||||||||base=1}} | | {{Count/testcase1|||||||||||base=1}} | ||
|- | |- | ||
| {{Count/testcase1|base{{=}}0|||||||||}} | | <big><nowiki>{{Count/testcase1|base{{=}}0|||||||||}}</nowiki></big> | ||
| {{Count/testcase1|base=0||||||||||}} | | {{Count/testcase1|base=0||||||||||}} | ||
|- | |- | ||
| {{Count/testcase1|base{{=}}1|||||||||}} | | <big>{<nowiki>{Count/testcase1|base{{=}}1|||||||||}}</nowiki></big> | ||
| {{Count/testcase1|base=1||||||||||}} | | {{Count/testcase1|base=1||||||||||}} | ||
|- | |- | ||
| {{Count/testcase1|base{{=}}0||||||PQR|||}} | | <big><nowiki>{{Count/testcase1|base{{=}}0||||||PQR|||}}</nowiki></big> | ||
| {{Count/testcase1|base=0||||||PQR||||}} | | {{Count/testcase1|base=0||||||PQR||||}} | ||
|- | |- | ||
| {{Count/testcase1|base{{=}}1||||||PQR|||}} | | <big><nowiki>{{Count/testcase1|base{{=}}1||||||PQR|||}}</nowiki></big> | ||
| {{Count/testcase1|base=1||||||PQR||||}} | | {{Count/testcase1|base=1||||||PQR||||}} | ||
|} | |} |
Revision as of 00:46, 30 January 2015
Note: 0 tests nesting of templates calling 0.
Call | Result |
---|---|
{{Count|A|B||D}} | 3 |
{{Count/testcase1}} | 0 |
{{Count/testcase1|base{{=}}1}} | 1 |
{{Count/testcase1|base{{=}}0}} | 0 |
{{Count/testcase1|abc}} | 1 |
{{Count/testcase1|abc|base{{=}}0}} | 1 |
{{Count/testcase1|abc|base{{=}}1}} | 1 |
{{Count/testcase1||DEF}} | 1 |
{{Count/testcase1|abc|DEF}} | 2 |
{{Count/testcase1|abc|DEF|}} | 2 |
{{Count/testcase1|abc|DEF|ghi}} | 3 |
{{Count/testcase1|abc||ghi}} | 2 |
{{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz#}} | 9 |
{{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%}} | 10 |
{{Count/testcase1|abc|DEF|ghi|JKL|mno|PQR|stu|VWX|yz@|#$%|^&*|()_|+:"|123|456|789|000}} | 10 Only counts to 10 right now! |
{{Count/testcase1|abc||ghi||mno||stu||yz@|}} | 5 |
{{Count/testcase1||DEF||JKL||PQR||VWX||#$%}} | 5 |
{{Count/testcase1|DEF|JKL|PQR|VWX|#$%}} | 5 |
{{Count/testcase1||||||||||#$%}} | 1 |
{{Count/testcase1|||||||||}} | 0 |
{{Count/testcase1||||||||||base{{=}}0}} | 0 |
{{Count/testcase1||||||||||base{{=}}1}} | 1 |
{{Count/testcase1|base{{=}}0|||||||||}} | 0 |
{{Count/testcase1|base{{=}}1|||||||||}} | 1 |
{{Count/testcase1|base{{=}}0||||||PQR|||}} | 1 |
{{Count/testcase1|base{{=}}1||||||PQR|||}} | 1 |