Publish current app and server
This commit is contained in:
@@ -56,3 +56,12 @@ func TestParseLevel(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestParseCapacity(t *testing.T) {
|
||||
if got := ParseCapacity("1000", 5); got != 1000 {
|
||||
t.Fatalf("capacity = %d", got)
|
||||
}
|
||||
if got := ParseCapacity("-1", 5); got != 5 {
|
||||
t.Fatalf("negative capacity = %d", got)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user