(tests): Added tests for fmt without spaces
This commit is contained in:
parent
b2081be19b
commit
52c5558b31
1 changed files with 5 additions and 0 deletions
|
@ -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],
|
||||||
|
|
Loading…
Reference in a new issue