Add test for null byte

This commit is contained in:
lordwelch 2020-12-21 12:11:44 -08:00
parent 54efa7ea13
commit d0260a3181

View File

@ -15,6 +15,7 @@ var tests = []struct {
{"hello\t", "hello_", pathvalidate.ErrInvalidChar},
{"hello\r", "hello_", pathvalidate.ErrInvalidChar},
{"hello\n", "hello_", pathvalidate.ErrInvalidChar},
{"hello\x00", "hello_", pathvalidate.ErrInvalidChar},
{"hello ", "hello", pathvalidate.ErrInvalidChar},
{"hello/world", "hello_world", pathvalidate.ErrInvalidChar},
{"nul", "nul_", pathvalidate.ErrReservedWord},