Files
Go-tool/util/splitNumToN/SplitNumTo3_test.go

25 lines
353 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* @Author : huangZJ
* @Time : 2021/6/16 10:52
* @Description
*/
package splitNumToN
import (
"fmt"
"testing"
)
func TestSplitNumTo3(t *testing.T) {
for i := 4; i <= 17; i++ {
fmt.Println()
fmt.Println(fmt.Sprintf("当前随机数为%d", i))
for j := 0; j < 100; j++ {
fmt.Println()
SplitNumTo3(i)
}
fmt.Println()
}
}