lib/random: unify random string generation into random.String
This was factored from fstest as we were including the testing
enviroment into the main binary because of it.
This was causing opening the browser to fail because of 8243ff8bc8
.
This commit is contained in:
parent
72d5b11d1b
commit
5065c422b4
12 changed files with 63 additions and 65 deletions
13
lib/random/random_test.go
Normal file
13
lib/random/random_test.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package random
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestString(t *testing.T) {
|
||||
for i := 0; i < 100; i++ {
|
||||
assert.Equal(t, i, len(String(i)))
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue