Module talk:Ustring/testcases
Appearance
2 of 10 tests failed.
Test | Live | Sandbox | Expected | |
---|---|---|---|---|
![]() |
{{#invoke:ustring|gsub| hello world | world | x }} | hello x | hello x | hello x |
![]() |
{{#invoke:ustring|gsub| hello world| world | x }} | hello world | hello world | hello world |
Test | Live | Sandbox | Expected | |
---|---|---|---|---|
![]() |
{{#invoke:ustring|sub| hello | 1 | 3 | onerror = foo}} | he | he | he |
![]() |
{{#invoke:ustring|sub| s1 = hello | bar | 3 | onerror = foo}} | Lua error: bad argument #2 to 'sub' (number expected, got string). | foo | foo |
![]() |
{{#invoke:ustring|sub| s1 = hello | 0 | | onerror = foo}} | Lua error: bad argument #3 to 'sub' (number expected, got string). | foo | foo |
Test | Live | Sandbox | Expected | |
---|---|---|---|---|
![]() |
{{#invoke:ustring|sub| hello | 1 | 3}} | he | he | he |
![]() |
{{#invoke:ustring|sub| s1 = hello | 1 | 3}} | hel | hel | hel |
![]() |
{{#invoke:ustring|sub| s1 = hello | 0 | 3}} | hel | hel | hel |
![]() |
{{#invoke:ustring|sub| s1 = hello | -3 }} | llo | llo | llo |
![]() |
{{#invoke:ustring|sub| hello | -3 }} | lo | lo | lo |
Start a discussion about improving the Module:Ustring/testcases page
Talk pages are where people discuss how to make content on Wikipedia the best that it can be. You can use this page to start a discussion with others about how to improve the "Module:Ustring/testcases" page.