-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrand_test.go
44 lines (37 loc) · 825 Bytes
/
rand_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package cryptorandstr_test
import (
"fmt"
"testing"
"github.com/bddjr/cryptorandstr"
)
const strLen = 27
const n = 5
func TestMustRand10(t *testing.T) {
const strLen = 6
fmt.Println("MustRand10", strLen)
for i := 0; i < n; i++ {
fmt.Println(" ", cryptorandstr.MustRand10(strLen))
}
fmt.Println()
}
func TestMustRand16(t *testing.T) {
fmt.Println("MustRand16", strLen)
for i := 0; i < n; i++ {
fmt.Println(" ", cryptorandstr.MustRand16(strLen))
}
fmt.Println()
}
func TestMustRand32(t *testing.T) {
fmt.Println("MustRand32", strLen)
for i := 0; i < n; i++ {
fmt.Println(" ", cryptorandstr.MustRand32(strLen))
}
fmt.Println()
}
func TestMustRand64(t *testing.T) {
fmt.Println("MustRand64", strLen)
for i := 0; i < n; i++ {
fmt.Println(" ", cryptorandstr.MustRand64(strLen))
}
fmt.Println()
}