Add token generator test

This commit is contained in:
nxshock 2019-07-22 19:46:21 +05:00
parent 149628e07f
commit f7fd9f190e

View File

@ -0,0 +1,12 @@
package memory
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestTokenGenerator(t *testing.T) {
token := newToken(defaultTokenSize)
assert.Len(t, token, defaultTokenSize*2)
}