Skip to content

Commit

Permalink
feat: Update KeysInValidator to include missing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
bangadam committed Jun 18, 2024
1 parent 43af5d2 commit 0064072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validation/string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0064072

Please sign in to comment.