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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user