mirror of
https://github.com/ollama/ollama.git
synced 2025-05-10 18:06:33 +02:00
test: add test cases for HumanNumber (#9108)
This commit is contained in:
parent
3b4424ff98
commit
716e365615
1 changed files with 3 additions and 0 deletions
|
@ -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"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue