-- import "."
Package be_math provides Be matchers for mathematical operations
func Approx(compareTo, threshold any) types.BeMatcherApprox succeeds if actual is numerically approximately equal to the passed-in value within the specified threshold.
func ApproxZero() types.BeMatcherApproxZero succeeds if actual is numerically approximately equal to zero Any type of int/float will work for comparison.
func DivisibleBy(divisor any) types.BeMatcherDivisibleBy succeeds if actual is numerically divisible by the passed-in value.
func Even() types.BeMatcherEven succeeds if actual is an even numeric value.
func GreaterThan(arg any) types.BeMatcherGreaterThan succeeds if actual is numerically greater than the passed-in value.
func GreaterThanEqual(arg any) types.BeMatcherGreaterThanEqual succeeds if actual is numerically greater than or equal to the passed-in value.
func Gt(arg any) types.BeMatcherGt is an alias for GreaterThan, succeeding if actual is numerically greater than the passed-in value.
func Gte(arg any) types.BeMatcherGte is an alias for GreaterThanEqual, succeeding if actual is numerically greater than or equal to the passed-in value.
func InRange(from any, fromInclusive bool, until any, untilInclusive bool) types.BeMatcherInRange succeeds if actual is numerically within the specified range. The range is defined by the 'from' and 'until' values, and inclusivity is determined by the 'fromInclusive' and 'untilInclusive' flags.
func Integral() types.BeMatcherIntegral succeeds if actual is an integral float, meaning it has zero decimal places. This matcher checks if the numeric value has no fractional component.
func LessThan(arg any) types.BeMatcherLessThan succeeds if actual is numerically less than the passed-in value.
func LessThanEqual(arg any) types.BeMatcherLessThanEqual succeeds if actual is numerically less than or equal to the passed-in value.
func Lt(arg any) types.BeMatcherLt is an alias for LessThan, succeeding if actual is numerically less than the passed-in value.
func Lte(arg any) types.BeMatcherLte is an alias for LessThanEqual, succeeding if actual is numerically less than or equal to the passed-in value.
func Negative() types.BeMatcherNegative succeeds if actual is a negative numeric value.
func Odd() types.BeMatcherOdd succeeds if actual is an odd numeric value.
func Positive() types.BeMatcherPositive succeeds if actual is a positive numeric value.
func Zero() types.BeMatcherZero succeeds if actual is numerically equal to zero. Any type of int/float will work for comparison.