Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
716e3656
Unverified
Commit
716e3656
authored
Feb 19, 2025
by
L. Jiang
Committed by
GitHub
Feb 18, 2025
Browse files
test: add test cases for HumanNumber (#9108)
parent
3b4424ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
format/format_test.go
format/format_test.go
+3
-0
No files found.
format/format_test.go
View file @
716e3656
...
...
@@ -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"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment