From bca1b0ccdece7b992cc88712aca36a9a127b1381 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 25 May 2025 09:31:58 +0100 Subject: Use modern APIs and retire MapKeys --- util_test.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'util_test.go') 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()}} -- cgit v1.2.3-70-g09d2