Standardize with ollama.com

This commit is contained in:
Roy Han
2024-06-24 10:53:15 -07:00
parent af370ac178
commit f93cdfdfae
2 changed files with 33 additions and 25 deletions

View File

@@ -11,15 +11,14 @@ func TestHumanNumber(t *testing.T) {
}
testCases := []testCase{
{0, "0"},
{1000000, "1M"},
{125000000, "125M"},
{500500000, "500.50M"},
{500550000, "500.55M"},
{1000000000, "1B"},
{2800000000, "2.80B"},
{2850000000, "2.85B"},
{1000000000000, "1000B"},
{26000000, "26.0M"},
{26000000000, "26.0B"},
{1000, "1.00K"},
{1000000, "1.00M"},
{1000000000, "1.00B"},
{1000000000000, "1.00T"},
{100, "100"},
{206000000, "206M"},
}
for _, tc := range testCases {