mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-06-30 18:51:03 +00:00
18 lines
285 B
Go
18 lines
285 B
Go
|
package saltyim
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestGenerateULID(t *testing.T) {
|
||
|
assert := assert.New(t)
|
||
|
require := require.New(t)
|
||
|
|
||
|
ulid, err := GenerateULID()
|
||
|
require.NoError(err)
|
||
|
assert.NotEmpty(ulid)
|
||
|
}
|