Sha256: 919b1b8c6e6719d49e95637f4a8f3d3824f694cd6f684b643ede3c01d9e0527e

Contents?: true

Size: 553 Bytes

Versions: 4

Compression:

Stored size: 553 Bytes

Contents

require 'tc_helper.rb'

class TestScatterSeries < Test::Unit::TestCase

  def setup
    p = Axlsx::Package.new
    @ws = p.workbook.add_worksheet :name=>"hmmm"
    chart = @ws.drawing.add_chart Axlsx::ScatterChart, :title => "Scatter Chart"
    @series = chart.add_series :xData=>[1,2,4], :yData=>[1,3,9], :title=>"exponents"
  end

  def test_initialize
    assert_equal(@series.title.text, "exponents", "series title has been applied")
  end

  def test_data
    assert_equal(@series.xData, [1,2,4])
    assert_equal(@series.yData, [1,3,9])
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
axlsx-1.1.3 test/drawing/tc_scatter_series.rb
axlsx-1.1.2 test/drawing/tc_scatter_series.rb
axlsx-1.1.1 test/drawing/tc_scatter_series.rb
axlsx-1.1.0 test/drawing/tc_scatter_series.rb