diff --git a/ircfmt/ircfmt_test.go b/ircfmt/ircfmt_test.go index bfe01b4..6402608 100644 --- a/ircfmt/ircfmt_test.go +++ b/ircfmt/ircfmt_test.go @@ -38,24 +38,24 @@ var stripTests = []testcase{ {"te\x034,039st", "te9st"}, {" ▀█▄▀▪.▀ ▀ ▀ ▀ ·▀▀▀▀ ▀█▄▀ ▀▀ █▪ ▀█▄▀▪", " ▀█▄▀▪.▀ ▀ ▀ ▀ ·▀▀▀▀ ▀█▄▀ ▀▀ █▪ ▀█▄▀▪"}, {"test\x02case", "testcase"}, - {"", "",}, - {"test string", "test string",}, - {"test \x03", "test ",}, - {"test \x0301string", "test string",}, - {"test\x031,2 string", "test string",}, - {"test\x0301,02 string", "test string",}, - {"test\x03, string", "test, string",}, - {"test\x03,12 string", "test string",}, - {"\x02\x031,2\x11\x16\x1d\x1e\x0f\x1f", "",}, - {"\x03", "",}, - {"\x03,", ",",}, - {"\x031,2", "",}, - {"\x0315,1234", "34",}, - {"\x03151234", "1234",}, - {"\x03\x03\x03\x03\x03\x03\x03", "",}, - {"\x03\x03\x03\x03\x03\x03\x03\x03", "",}, - {"\x03,\x031\x0312\x0334,\x0356,\x0378,90\x031234", ",,,34",}, - {"\x0312,12\x03121212\x0311,333\x03,3\x038\x0399\x0355\x03test", "12123test",}, + {"", ""}, + {"test string", "test string"}, + {"test \x03", "test "}, + {"test \x0301string", "test string"}, + {"test\x031,2 string", "test string"}, + {"test\x0301,02 string", "test string"}, + {"test\x03, string", "test, string"}, + {"test\x03,12 string", "test string"}, + {"\x02\x031,2\x11\x16\x1d\x1e\x0f\x1f", ""}, + {"\x03", ""}, + {"\x03,", ","}, + {"\x031,2", ""}, + {"\x0315,1234", "34"}, + {"\x03151234", "1234"}, + {"\x03\x03\x03\x03\x03\x03\x03", ""}, + {"\x03\x03\x03\x03\x03\x03\x03\x03", ""}, + {"\x03,\x031\x0312\x0334,\x0356,\x0378,90\x031234", ",,,34"}, + {"\x0312,12\x03121212\x0311,333\x03,3\x038\x0399\x0355\x03test", "12123test"}, } func TestEscape(t *testing.T) {