summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_axes.rb
blob: 7ec5613cdfa12e31851525fe8684842efffae54b (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

require 'tc_helper'

class TestAxes < Test::Unit::TestCase
  def test_constructor_requires_cat_axis_first
    assert_raise(ArgumentError) { Axlsx::Axes.new(val_axis: Axlsx::ValAxis, cat_axis: Axlsx::CatAxis) }
    assert_nothing_raised { Axlsx::Axes.new(cat_axis: Axlsx::CatAxis, val_axis: Axlsx::ValAxis) }
  end
end