mirror of
https://github.com/schollz/croc.git
synced 2024-07-08 14:44:47 +02:00
16 lines
232 B
Go
16 lines
232 B
Go
|
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)
|
||
|
}
|