Skip to content

Commit 189c8be

Browse files
committed
Switched from test-unit to Minitest
1 parent 9626547 commit 189c8be

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

test/test_bitarray.rb

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
require "test/unit"
1+
require "minitest/autorun"
22
require "bitarray"
33

4-
class TestBitArray < Test::Unit::TestCase
4+
class TestBitArray < Minitest::Test
55

66
def setup
77
@public_ba = BitArray.new(1000)
@@ -29,23 +29,6 @@ def test_random_setting_and_unsetting
2929
end
3030
end
3131

32-
#def test_random_side_effects
33-
# ba2 = BitArray.new(@public_ba.size, 1)
34-
#
35-
# on = (@public_ba.size / 2).times.collect do
36-
# index = rand(@public_ba.size)
37-
# @public_ba[index] = 1
38-
# ba2[index] = 0
39-
# index
40-
# end
41-
# #assert_equal(@public_ba.to_s, @public_ba.to_s_fast)
42-
#
43-
# @public_ba.size.times do |i|
44-
# assert_equal(@public_ba[i], on.include?(i) ? 1 : 0)
45-
# assert_equal(ba2[i], on.include?(i) ? 0 : 1)
46-
# end
47-
#end
48-
4932
def test_multiple_setting
5033
1.upto(999) do |pos|
5134
2.times { @public_ba[pos] = 1 }

0 commit comments

Comments
 (0)