Sha256: 1b990dce430dbb230ad2e1e3523a872390eb3aff87c52d91a8431cb79bd7b9f8

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 Bytes

Contents

require 'test/unit'
require 'axlsx.rb'

class TestValAxisData < Test::Unit::TestCase

  def setup
    p = Axlsx::Package.new
    @ws = p.workbook.add_worksheet :name=>"hmmm"
    chart = @ws.drawing.add_chart Axlsx::Bar3DChart, :title => "fishery"
    @series = chart.add_series :data=>[0,1,2], :labels=>["zero", "one", "two"], :title=>"bob"
  end
  
  def test_initialize
    assert(@series.data.is_a?Axlsx::SimpleTypedList)
    assert_equal(@series.data, [0,1,2], "data option applied")
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axlsx-1.0.7 test/drawing/tc_val_axis_data.rb~