删除不需要的代码

This commit is contained in:
刘祥超
2022-10-14 09:57:24 +08:00
parent 468b6ae125
commit 17e6264af8
31 changed files with 66 additions and 1155 deletions

View File

@@ -34,3 +34,20 @@ func TestFormatFloat(t *testing.T) {
t.Log(numberutils.FormatFloat(100.000023, 2))
t.Log(numberutils.FormatFloat(100.012, 2))
}
func TestTrimZeroSuffix(t *testing.T) {
for _, s := range []string{
"1",
"1.0000",
"1.10",
"100",
"100.0000",
"100.0",
"100.0123",
"100.0010",
"100.000KB",
"100.010MB",
} {
t.Log(s, "=>", numberutils.TrimZeroSuffix(s))
}
}