diff options
| author | Randy Morgan <[email protected]> | 2012-11-08 08:10:36 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-11-08 08:10:36 +0900 |
| commit | d18170cd86810a6210905b7ab8ed104b6103d877 (patch) | |
| tree | 7ffabea376a31095025241ef818131be87943f77 /test/util | |
| parent | 887734c808438f30f419c5c26598e2f42ee01242 (diff) | |
| download | caxlsx-d18170cd86810a6210905b7ab8ed104b6103d877.tar.gz caxlsx-d18170cd86810a6210905b7ab8ed104b6103d877.zip | |
fixed cell text run validation for u and family
Diffstat (limited to 'test/util')
| -rw-r--r-- | test/util/tc_validators.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/util/tc_validators.rb b/test/util/tc_validators.rb index 1c3e173c..de896f3d 100644 --- a/test/util/tc_validators.rb +++ b/test/util/tc_validators.rb @@ -159,6 +159,20 @@ class TestValidators < Test::Unit::TestCase assert_raise(ArgumentError) { Axlsx.validate_split_state_type 0 } end + def test_validate_family + assert_raise(ArgumentError) { Axlsx.validate_family 0 } + (1..5).each do |item| + assert_nothing_raised { Axlsx.validate_family item } + end + end + + def test_validate_u + assert_raise(ArgumentError) { Axlsx.validate_cell_u :hoge } + [:none, :single, :double, :singleAccounting, :doubleAccounting].each do |sym| + assert_nothing_raised { Axlsx.validate_cell_u sym } + end + end + def test_range_validation # exclusive assert_raise(ArgumentError) { Axlsx::RangeValidator.validate('foo', 1, 10, 10, false) } |
