Skip to content

Commit

Permalink
test: ensure basic check_has works with string arrays properly
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed May 16, 2024
1 parent 8a4233d commit 642a571
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tooling/check/check_has_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package check

import (
"testing"
)

func TestCheckHas(t *testing.T) {
// Create a Check instance
check := Has("value1", "value2", "value3")

// Test data
testData := []string{"value1", "value2", "value3"}

// Call .Check on the instance
output := check.Check(testData)

// Assert that the check was successful
if !output.Success {
t.Errorf("Check failed: %s", output.Reason)
}
}

0 comments on commit 642a571

Please sign in to comment.