//Be returns an error if the first varadic argument is not equal to the given value.
Be returns an error if the first varadic argument is not equal to the given value.
// Be returns an error if the first varadic argument is not equal to the given value .
func Be(value interface{}) func(args ...interface{}) test.Error {
	return func(args ...interface{}) test.Error {
		if !reflect.DeepEqual(value, args[0]) {
			return test.Error{fmt.Errorf("should be %v but found %v", value, args[0])}
		}
		return nil
	}
}
func Be ( value interface { } ) func ( args ... interface { } ) test . Error { return func ( args ... interface { } ) test . Error { if ! reflect . DeepEqual ( value , args [ 0 ] ) { return test . Error { fmt . Errorf ( " " , value , args [ 0 ] ) } } return nil } }
Be returns an error if the first varadic argument is not equal to the given value.
Be returns an error if the first varadic argument is not equal to the given value .