summaryrefslogtreecommitdiff
path: root/runtimeindex_test.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-06-20 20:41:07 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-06-20 20:41:07 +0200
commitbf64f18ea70a44bf6d9eb7ceafb74756aea2cc9d (patch)
tree0e33a457b7c12e65861ad2822f605b55ea4898c8 /runtimeindex_test.go
parent7be01bbd68af248331c8c9ad321eafef2e7d4824 (diff)
downloadgo-oblast-bf64f18ea70a44bf6d9eb7ceafb74756aea2cc9d.tar.gz
bump gg to 0.10.0, use gg/assert
Diffstat (limited to 'runtimeindex_test.go')
-rw-r--r--runtimeindex_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtimeindex_test.go b/runtimeindex_test.go
index ea77560..59044c4 100644
--- a/runtimeindex_test.go
+++ b/runtimeindex_test.go
@@ -7,8 +7,8 @@ import (
"database/sql"
"testing"
+ "go.xyrillian.de/gg/assert"
"go.xyrillian.de/oblast"
- "go.xyrillian.de/oblast/internal/testhelpers/assert"
"go.xyrillian.de/oblast/internal/testhelpers/mock"
"go.xyrillian.de/oblast/internal/testhelpers/must"
)
@@ -43,7 +43,7 @@ func TestRuntimeIndex(t *testing.T) {
// test success path
commonSetup()
result := must.Return(byName.IndexFrom(store.SelectWhere(ctx, db, `id > 0`)))(t)
- assert.DeepEqual(t, result, map[string]basicRecord{
+ assert.Equal(t, result, map[string]basicRecord{
"foo": {1, "foo"},
"bar": {2, "bar"},
"baz": {3, "baz"},
@@ -60,7 +60,7 @@ func TestRuntimeIndex(t *testing.T) {
// test success path
commonSetup()
result := must.Return(byFirstLetter.PartitionFrom(store.SelectWhere(ctx, db, `id > 0`)))(t)
- assert.DeepEqual(t, result, map[string][]basicRecord{
+ assert.Equal(t, result, map[string][]basicRecord{
"f": {{1, "foo"}},
"b": {{2, "bar"}, {3, "baz"}},
})