moved zero pad
This commit is contained in:
@@ -35,3 +35,18 @@ func TestUnify(t *testing.T) {
|
||||
t.Errorf(`Double whitespaces need to be removed`)
|
||||
}
|
||||
}
|
||||
|
||||
func TestZeroPad(t *testing.T) {
|
||||
cases := map[int]string{
|
||||
0: "000",
|
||||
5: "005",
|
||||
1000: "1000",
|
||||
50: "050",
|
||||
}
|
||||
|
||||
for key, val := range cases {
|
||||
if res := ZeroPad(key, 3); res != val {
|
||||
t.Errorf(`did not match`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user