package utils

import (
	"fmt"
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestGenerateID(t *testing.T) {
	for i := 0; i < 100; i++ {
		id := GenerateID()
		assert.NotEmpty(t, id)
		fmt.Println(id)

	}
}

func TestShortID(t *testing.T) {
	for i := 0; i < 100; i++ {
		id := ShortID()
		assert.NotEmpty(t, id)
		fmt.Println(id)
	}
}

func TestFnvHash(t *testing.T) {
	for i := 0; i < 100; i++ {
		id := ShortID()
		hash := FnvHash(id)
		assert.NotEmpty(t, hash)
	}
}
