class MiniUnitSort

Sort Unit Test

Public Instance Methods

setup() click to toggle source
# File mini_unit/mini_unit_sort.rb, line 8
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 mini_unit/mini_unit_sort.rb, line 39
  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 mini_unit/mini_unit_sort.rb, line 35
def test_match
  # assert_match
end
test_new() click to toggle source
# File mini_unit/mini_unit_sort.rb, line 15
def test_new
  assert_equal @so,@so2
end
test_nil_variable() click to toggle source
# File mini_unit/mini_unit_sort.rb, line 31
def test_nil_variable
  # assert_nil
end
test_up_should_be_array() click to toggle source
# File mini_unit/mini_unit_sort.rb, line 19
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 mini_unit/mini_unit_sort.rb, line 26
def test_up_should_be_enumerator
  assert_kind_of Enumerator, @so3
  assert_instance_of Enumerator, @so3
end