Browse Source

test: add test cases for HumanNumber (#9108)

L. Jiang 2 months ago
parent
commit
716e365615
1 changed files with 3 additions and 0 deletions
  1. 3 0
      format/format_test.go

+ 3 - 0
format/format_test.go

@@ -12,6 +12,9 @@ func TestHumanNumber(t *testing.T) {
 
 	testCases := []testCase{
 		{0, "0"},
+		{999, "999"},
+		{1000, "1K"},
+		{1001, "1K"},
 		{1000000, "1M"},
 		{125000000, "125M"},
 		{500500000, "500.50M"},