Sha256: f9c908611a9e9a072aaf4b05edcc0876418a75bde90cb8b67250b968f65541ba
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
require 'tc_helper.rb' class TestNumFmt < Test::Unit::TestCase def setup @item = Axlsx::NumFmt.new end def teardown end def test_initialiation assert_equal(@item.numFmtId, 0) assert_equal(@item.formatCode, "") end def test_numFmtId assert_raise(ArgumentError) { @item.numFmtId = -1.1 } assert_nothing_raised { @item.numFmtId = 2 } assert_equal(@item.numFmtId, 2) end def test_fomatCode assert_raise(ArgumentError) { @item.formatCode = -1.1 } assert_nothing_raised { @item.formatCode = "0" } assert_equal(@item.formatCode, "0") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caxlsx-3.2.0 | test/stylesheet/tc_num_fmt.rb |