summaryrefslogtreecommitdiffhomepage
path: root/test/util
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-05-15 11:23:59 +0900
committerRandy Morgan <[email protected]>2012-05-15 11:23:59 +0900
commit2d744ba77906d460b608859c945a5741ec725e42 (patch)
tree0366b619ea15909d230a2fa485a95d395486d6cf /test/util
parent2e1e14dd8f91e8a1416faae9501fdf04638104c7 (diff)
downloadcaxlsx-2d744ba77906d460b608859c945a5741ec725e42.tar.gz
caxlsx-2d744ba77906d460b608859c945a5741ec725e42.zip
bring coverage up to 100% and patch a few minor bugs in cell style overrides and misnamed app attributes.
Diffstat (limited to 'test/util')
-rw-r--r--test/util/tc_simple_typed_list.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/util/tc_simple_typed_list.rb b/test/util/tc_simple_typed_list.rb
index 482ea8e3..d74cc9cc 100644
--- a/test/util/tc_simple_typed_list.rb
+++ b/test/util/tc_simple_typed_list.rb
@@ -61,5 +61,18 @@ class TestSimpleTypedList < Test::Unit::TestCase
assert_nothing_raised { @list.delete 0 }
assert_nothing_raised { @list.delete 9 }
end
+
+ def test_delete
+ @list.push 1
+ assert(@list.size == 1)
+ @list.delete 1
+ assert(@list.empty?)
+ end
+ def test_equality
+ @list.push 1
+ @list.push 2
+ assert_equal(@list, [1,2])
+
+ end
end