Tests for positive or negative infinity.
math.isinf(x)
One number.
Boolean.
Uses floating classification.
Requires a number.
use math assert(math.isinf(-math.inf))