diff --git a/tooling/check/check_has_test.go b/tooling/check/check_has_test.go new file mode 100644 index 000000000..a7b56ef1b --- /dev/null +++ b/tooling/check/check_has_test.go @@ -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) + } +}