test/polynomial_test.rb in polynomials-0.4.3 vs test/polynomial_test.rb in polynomials-0.4.4

- old
+ new

@@ -93,6 +93,12 @@ def test_calculation_of_function_with_absolute_term_linear polynomial = Polynomial.parse('5x + 2') assert_equal 7, polynomial.(1) end + + def test_constant_zero_polynomial + constant_function = Polynomial.new(0) + assert_equal Set[], constant_function.roots + assert_equal nil, constant_function.curvature_behaviour + end end