refactor with sugar-n-spice
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
package entities
|
||||
|
||||
import (
|
||||
"github.com/DonovanKelly/sugar-n-spice/all"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"go-nkode/internal/models"
|
||||
py "go-nkode/internal/utils"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -120,12 +120,12 @@ func TestUserInterface_PartialInterfaceShuffle(t *testing.T) {
|
||||
shuffleCompare[idx] = val == postShuffle[idx]
|
||||
}
|
||||
|
||||
allTrue := py.All[bool](shuffleCompare, func(n bool) bool {
|
||||
allTrue := all.All[bool](shuffleCompare, func(n bool) bool {
|
||||
return n == true
|
||||
})
|
||||
assert.False(t, allTrue)
|
||||
|
||||
allFalse := py.All[bool](shuffleCompare, func(n bool) bool {
|
||||
allFalse := all.All[bool](shuffleCompare, func(n bool) bool {
|
||||
return n == false
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user