1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-11 08:12:26 +08:00

test: add some unit test function for convertor, random, slice, and formatter

This commit is contained in:
dudaodong
2021-11-29 17:27:02 +08:00
parent fee6cb17f3
commit f2ed3c6270
8 changed files with 92 additions and 56 deletions

View File

@@ -9,6 +9,8 @@ import (
func TestComma(t *testing.T) {
comma(t, "", "", "")
comma(t, "aa", "", "")
comma(t, "aa.a", "", "")
comma(t, []int{1}, "", "")
comma(t, "123", "", "123")
comma(t, "12345", "", "12,345")
comma(t, 12345, "", "12,345")