test: add test cases for HumanNumber (#9108)

This commit is contained in:
L. Jiang 2025-02-19 03:35:26 +08:00 committed by GitHub
parent 3b4424ff98
commit 716e365615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"},