Skip to content

Commit

Permalink
Fix setup in scatter_plot test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed May 22, 2024
1 parent 048c9a5 commit 3bed5b6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/plot_methods/scatter_plot_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ class PlotMethodScatterPlotTest < Test::Unit::TestCase

sub_test_case("function-call style") do
def setup
super

@x = Array.new(20) {|i| rand(i.to_f) }
@y = Array.new(20) {|i| rand * @x[i] }
@data = {x: @x, y: @y}
super do
@x = Array.new(20) {|i| rand(i.to_f) }
@y = Array.new(20) {|i| rand * @x[i] }
@data = {x: @x, y: @y}
yield
end
end

sub_test_case("wide-form input") do
Expand Down

0 comments on commit 3bed5b6

Please sign in to comment.