class TestSort
Sort Unit Test
Public Instance Methods
setup()
click to toggle source
# File test/test_sort.rb, line 5 def setup array = ['Ruby','Java','Go','Hive','Perl','C#'] @so = array.sort! @so2 = array.sort @so3 = array.sort_by end
teardown()
click to toggle source
# File test/test_sort.rb, line 36 def teardown # database network test add. end
test_date()
click to toggle source
# File mini_test/mini_test_sort.rb, line 8 def test_date array = ['Ruby', 'Java', 'Go', 'Hive', 'Perl', 'C#'] @so = array.sort! @so2 = array.sort assert_equal @so, @so end
test_match()
click to toggle source
# File test/test_sort.rb, line 32 def test_match # assert_match end
test_new()
click to toggle source
# File test/test_sort.rb, line 12 def test_new assert_equal @so,@so2 end
test_nil_variable()
click to toggle source
# File test/test_sort.rb, line 28 def test_nil_variable # assert_nil end
test_up_should_be_array()
click to toggle source
# File test/test_sort.rb, line 16 def test_up_should_be_array assert_kind_of Array, @so assert_instance_of Array, @so assert_kind_of Array, @so2 assert_instance_of Array, @so2 end
test_up_should_be_enumerator()
click to toggle source
# File test/test_sort.rb, line 23 def test_up_should_be_enumerator assert_kind_of Enumerator, @so3 assert_instance_of Enumerator, @so3 end