croc/randomstring/randomstring_test.go

16 lines
232 B
Go
Raw Normal View History

2018-06-25 04:21:56 +02:00
package randomstring
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
func TestRandomString(t *testing.T) {
r, err := GenerateRandomString(20)
assert.Nil(t, err)
assert.Equal(t, 20, len(r))
fmt.Println(r)
}