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 9cf9d01
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tooling/check/check_has_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package check

import (
"testing"

"github.com/stretchr/testify/assert"
)

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
checkOutput := check.Check(testData)

assert.True(t, checkOutput.Success, checkOutput.Reason)
}

0 comments on commit 9cf9d01

Please sign in to comment.