summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_cat_axis_data.rb
blob: e8a71fb115843f8bc555ebfe7bd6d946bdb36d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'test/unit'
require 'axlsx.rb'

class TestCatAxisData < Test::Unit::TestCase

  def setup
    p = Axlsx::Package.new
    @ws = p.workbook.add_worksheet
    chart = @ws.drawing.add_chart Axlsx::Bar3DChart
    @series = chart.add_series :labels=>["zero", "one", "two"]
  end
  
  def test_initialize
    assert(@series.labels.is_a?Axlsx::SimpleTypedList)
    assert_equal(@series.labels, ["zero", "one", "two"])
  end

end