test/test_all.rb in interpolate-0.2.0 vs test/test_all.rb in interpolate-0.2.1

- old
+ new

@@ -77,11 +77,11 @@ assert_in_delta(@dec_gradient.at(1.5555), 0.15555, DELTA) assert_in_delta(@dec_gradient.at(2.5678), 0.25678, DELTA) assert_in_delta(@dec_gradient.at(3.5701), 0.35701, DELTA) end - def test_gradient_add + def test_gradient_merge new_points = { 11 => 1.1, 12 => 1.2, 13 => 1.3, 14 => 1.4, @@ -92,20 +92,20 @@ 19 => 1.9, 20 => 2 } original = @dec_gradient.dup - expanded = original.add(new_points) + expanded = original.merge(new_points) assert_equal(original.at(5), 0.5) assert_equal(expanded.at(5), 0.5) assert_equal(original.at(15), 1) assert_equal(expanded.at(15), 1.5) end - def test_gradient_add! + def test_gradient_merge! new_points = { 11 => 1.1, 12 => 1.2, 13 => 1.3, 14 => 1.4, @@ -117,10 +117,10 @@ 20 => 2 } original = @dec_gradient.dup expanded = original.dup - expanded.add!(new_points) + expanded.merge!(new_points) assert_equal(original.at(5), 0.5) assert_equal(expanded.at(5), 0.5) assert_equal(original.at(15), 1)