aboutsummaryrefslogtreecommitdiff
path: root/util_test.go
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2025-05-25 09:31:58 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2025-05-25 09:31:58 +0100
commitbca1b0ccdece7b992cc88712aca36a9a127b1381 (patch)
treea91d7028610d66c8f8f52bde5bbb3aeb41c3ff1f /util_test.go
parent64fe7a6ad302af4d9b35c86f262c4ff41ed980fd (diff)
Use modern APIs and retire MapKeys
Diffstat (limited to 'util_test.go')
-rw-r--r--util_test.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/util_test.go b/util_test.go
index 4ed1dde..1098b21 100644
--- a/util_test.go
+++ b/util_test.go
@@ -13,14 +13,6 @@ import (
"go.awhk.org/core"
)
-func TestMapKeys(s *testing.T) {
- t := core.T{T: s, Options: cmp.Options{sortStrings}}
-
- t.AssertEqual(([]string)(nil), core.MapKeys[map[string]int](nil))
- t.AssertEqual(([]string)(nil), core.MapKeys(map[string]int{}))
- t.AssertEqual([]string{"bar", "foo"}, core.MapKeys(map[string]int{"foo": 1, "bar": 2}))
-}
-
func TestMust(s *testing.T) {
t := core.T{T: s, Options: []cmp.Option{cmpopts.EquateErrors()}}