role color stuff
This commit is contained in:
parent
41d48bf60a
commit
f72c7a357b
9 changed files with 165 additions and 14 deletions
15
utils/emojis_test.go
Normal file
15
utils/emojis_test.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package utils_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.sapphic.engineer/roleypoly/v4/utils"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestRandomEmoji(t *testing.T) {
|
||||
for i := len(utils.AllEmojis) * 1000; i >= 0; i-- {
|
||||
e := utils.GetRandomEmoji()
|
||||
assert.Containsf(t, e.Name, "roleypolynext", "not valid on iteration %d", i)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue