mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
fixed bug in String
This commit is contained in:
parent
87ce1d3239
commit
d6863491da
@ -421,10 +421,11 @@ func (args Arguments) String(indexOrNil ...int) string {
|
||||
panic(fmt.Sprintf("assert: arguments: String(%d) failed because object wasn't correct type: %s", index, args.Get(index)))
|
||||
}
|
||||
return s
|
||||
} else {
|
||||
panic(fmt.Sprintf("assert: arguments: Wrong number of arguments passed to String. Must be 0 or 1, not %d", len(indexOrNil)))
|
||||
}
|
||||
|
||||
panic(fmt.Sprintf("assert: arguments: Wrong number of arguments passed to String. Must be 0 or 1, not %d", len(indexOrNil)))
|
||||
return ""
|
||||
|
||||
}
|
||||
|
||||
// Int gets the argument at the specified index. Panics if there is no argument, or
|
||||
|
Loading…
x
Reference in New Issue
Block a user