test/polynomial_test.rb in polynomials-0.1.2 vs test/polynomial_test.rb in polynomials-0.1.4
- old
+ new
@@ -54,9 +54,12 @@
polynomial = Polynomial.parse('1 x^4')
assert_equal({ left: Set[-1.0/0..+1.0/0] }, polynomial.curvature_behaviour)
polynomial = Polynomial.parse('-1 x^4')
assert_equal({ right: Set[-1.0/0..+1.0/0] }, polynomial.curvature_behaviour)
+
+ polynomial = Polynomial.parse('5x^2')
+ assert_equal({ left: Set[-1.0/0..+1.0/0] }, polynomial.curvature_behaviour)
end
def test_no_curve_and_no_inflection_points
polynomials = []
polynomials << Polynomial.parse('5 x + 4')