Merge pull request #93 from dlclark/master

Fixed regexp error messages to include input values to aide debugging
pull/122/head
Tyler 2015-01-13 10:39:58 -07:00
commit e897f97d66
1 changed files with 2 additions and 2 deletions

View File

@ -756,7 +756,7 @@ func Regexp(t TestingT, rx interface{}, str interface{}) bool {
match := matchRegexp(rx, str)
if !match {
Fail(t, "Expect \"%s\" to match \"%s\"")
Fail(t, "Expect \"%v\" to match \"%v\"", str, rx)
}
return match
@ -772,7 +772,7 @@ func NotRegexp(t TestingT, rx interface{}, str interface{}) bool {
match := matchRegexp(rx, str)
if match {
Fail(t, "Expect \"%s\" to NOT match \"%s\"")
Fail(t, "Expect \"%v\" to NOT match \"%v\"", str, rx)
}
return !match