(tests): Added tests for fmt without spaces

This commit is contained in:
nickshevr 2020-03-10 20:49:10 +03:00 committed by Fedor Korotkiy
parent b2081be19b
commit 52c5558b31

View file

@ -49,6 +49,11 @@ func TestFormat(t *testing.T) {
args: []interface{}{0, 1, "World"}, args: []interface{}{0, 1, "World"},
result: "Hello, World", result: "Hello, World",
}, },
{
format: "He{2}o",
args: []interface{}{0, 1, "ll"},
result: "Hello",
},
{ {
format: "{10}", format: "{10}",
args: s[:11], args: s[:11],