//Error returns an error if its last argument is nil.
Error returns an error if its last argument is nil.
// Error returns an error if its last argument is nil .
func Error(args ...interface{}) test.Error {
	if args[len(args)-1] == nil {
		return test.Error{errors.New("should have been an error")}
	}
	return nil
}
func Error ( args ... interface { } ) test . Error { if args [ len ( args ) - 1 ] == nil { return test . Error { errors . New ( " " ) } } return nil }
Error returns an error if its last argument is nil.
Error returns an error if its last argument is nil .