2019-12-28 09:48:36 +01:00
|
|
|
package session
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
2020-06-25 14:54:04 +02:00
|
|
|
func TestNewID(t *testing.T) {
|
2019-12-28 09:48:36 +01:00
|
|
|
for n := 0; n < 5; n++ {
|
2020-06-25 14:54:04 +02:00
|
|
|
id := NewID()
|
|
|
|
t.Logf("id: %s", id)
|
|
|
|
assert.Equal(t, 48, len(id))
|
2019-12-28 09:48:36 +01:00
|
|
|
}
|
|
|
|
}
|