feat: enroute groups
This commit is contained in:
@@ -2,10 +2,13 @@ package controller_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"slices"
|
||||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/iliadenisov/galaxy/internal/controller"
|
||||
"github.com/iliadenisov/galaxy/internal/model/game"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -67,6 +70,14 @@ var (
|
||||
}
|
||||
)
|
||||
|
||||
// [ ] Delete this fake test
|
||||
func TestSlicesDelete(t *testing.T) {
|
||||
sl := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
|
||||
assert.Len(t, sl, 10)
|
||||
sl = slices.DeleteFunc(sl, func(v int) bool { return v%2 == 0 })
|
||||
assert.Len(t, sl, 5)
|
||||
}
|
||||
|
||||
func assertNoError(err error) {
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("init assertion failed: %v", err))
|
||||
|
||||
Reference in New Issue
Block a user