Module talk:Protect/testcases
Add topicAppearance
All 12 tests passed.
test_protect
| Test | Expected | Actual | |
|---|---|---|---|
| Keep location | Error: Module:Protect/testcases:22: foo | Error: Module:Protect/testcases:22: foo | |
| . | Foo | Foo | |
| . | table | table | |
| : | Error: missing argument | Error: missing argument | |
| : | Foo | Foo | |
| Success | Foo | Foo | |
| Default error | Error: foo | Error: foo | |
| No caught message | Error: (no message) | Error: (no message) | |
| Custom errFormat | Failure (foo) | Failure (foo) | |
| Raw errFormat | Error: foo | Error: foo | |
| Custom raw errFormat | Failure (foo) | Failure (foo) | |
| Remove location | Error: foo | Error: foo |