From 0064072a1c4573a0f7db1d29678f80d5ead49f38 Mon Sep 17 00:00:00 2001 From: Muhammad Meganata Adam Date: Wed, 19 Jun 2024 05:45:11 +0700 Subject: [PATCH] feat: Update KeysInValidator to include missing keys --- validation/string_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/string_test.go b/validation/string_test.go index 6855f7d4..fbfc191b 100644 --- a/validation/string_test.go +++ b/validation/string_test.go @@ -186,7 +186,7 @@ func TestKeysInValidator(t *testing.T) { }{ {value: []string{"a", "b", "c"}, input: map[string]any{"a": 1, "b": 2, "c": 3}, want: true}, {value: []string{"a", "b", "c"}, input: map[string]any{"a": 1, "b": 2, "c": 3, "d": 4}, want: false}, - {value: []string{"a", "b", "c"}, input: map[string]any{"a": 1, "b": 2}, want: false}, + {value: []string{"a", "b", "c"}, input: map[string]any{"a": 1, "b": 2}, want: true}, } for _, tc := range cases {