Sha256: e90c8267b1d6c1ad65ec5418bddd589037e434c8da81451028516f65ee0b82ad

Contents?: true

Size: 732 Bytes

Versions: 4

Compression:

Stored size: 732 Bytes

Contents

require 'helper'
require 'bubble_sort/_tests/_test_01'

class TestTestCase < Test::Unit::TestCase
  
  context "TestAlgorithmBubbleSort" do
    
    should "be a acceptable test case" do
      t = TestAlgorithmBubbleSort.new
      assert_equal 'Decreasing Sequence', t.send('test_Decreasing Sequence').name
      assert_equal '9 8 7 6 5 4 3 2 1', t.send('test_Decreasing Sequence').input
      assert_equal '1 2 3 4 5 6 7 8 9', t.send('test_Decreasing Sequence').output
      
      assert_equal 'Random Sequence', t.send('test_Random Sequence').name
      assert_equal '3 1 5 7 6 8 9 4 2', t.send('test_Random Sequence').input
      assert_equal '1 2 3 4 5 6 7 8 9', t.send('test_Random Sequence').output
    end
    
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jeka-0.2.3 test/test_test_case.rb
jeka-0.2.2 test/test_test_case.rb
jeka-0.2.1 test/test_test_case.rb
jeka-0.2.0 test/test_test_case.rb