mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 12:01:51 +01:00
More test coverage.
This commit is contained in:
parent
4878991d2d
commit
c00347c894
@ -104,8 +104,13 @@ public class TestStringUtil {
|
|||||||
fail("Expect leftTrim to return null for null input, got instead: '" + StringUtil.leftTrim(null) + "'.");
|
fail("Expect leftTrim to return null for null input, got instead: '" + StringUtil.leftTrim(null) + "'.");
|
||||||
}
|
}
|
||||||
for (String[] spec : new String[][]{
|
for (String[] spec : new String[][]{
|
||||||
|
{"", ""},
|
||||||
{" ", ""},
|
{" ", ""},
|
||||||
{" \t", ""},
|
{" \t", ""},
|
||||||
|
{"Z", "Z"},
|
||||||
|
{"=(/CG%§87rgv", "=(/CG%§87rgv"},
|
||||||
|
{" X", "X"},
|
||||||
|
{"Y ", "Y "},
|
||||||
{" TEST", "TEST"},
|
{" TEST", "TEST"},
|
||||||
{"\t\n TEST", "TEST"},
|
{"\t\n TEST", "TEST"},
|
||||||
{" TEST ", "TEST "}
|
{" TEST ", "TEST "}
|
||||||
|
Loading…
Reference in New Issue
Block a user