package helpers import ( "testing" "regexp" ) func ExactItem(actualResult string, expectedResult string, t *testing.T) { if actualResult != expectedResult { t.Errorf("Expected '%v' to equal '%v'", actualResult, expectedResult) } } func RegexItem(actual string, regex string, t *testing.T) { re := regexp.MustCompile(regex) if re.MatchString(actual) != true { t.Errorf("Expected '%v' to match '%v'", actual, re) } }