test/test_curve.rb in tickly-2.1.4 vs test/test_curve.rb in tickly-2.1.5

- old
+ new

@@ -13,9 +13,18 @@ assert_equal 13, result.length assert_equal 742, result[0][0] assert_equal 754, result[7][0] end + def test_curve_plus + curve = [:c] + %w( curve+5 x1 987 x32 989.5999756 ) + + p = Tickly::Curve.new(curve) + result = p.to_a + assert_kind_of Array, result + assert_equal [[1, 992.0], [32, 994.5999756]], result + end + def test_invalid_curves assert_raise Tickly::Curve::InvalidCurveError do Tickly::Curve.new([]) end \ No newline at end of file