Sha256: 6882465e4a03612fce3ad51233afdae19a6f3e87e4d6bf5f6fac18e840ebc82b

Contents?: true

Size: 717 Bytes

Versions: 17

Compression:

Stored size: 717 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'helper')

module Rudy::Test

  class Case_01_Mixins < Test::Unit::TestCase
    
    def one_level; {:empty=>1}; end
    def two_levels; {:l1 => {:empty=>1}}; end
    def three_levels; { :l1 => { :l2 => {:empty=>1, :empty=>1} } }; end
    def six_levels; {:l1 => {:l2 => {:l3 => {:l4 => {:l5 => {}, :empty=>1}, :empty=>1}}}}; end
     
    context "#{name}_10 Hash" do
      
      should "(10) should calculate deepest point" do
        assert_equal one_level.deepest_point, 1
        assert_equal two_levels.deepest_point, 2
        assert_equal three_levels.deepest_point, 3
        assert_equal six_levels.deepest_point, 6
      end
      
    end
    
  end
  
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
sabat-rudy-0.8.0 test/01_mixins/10_hash_test.rb
solutious-rudy-0.7.0 test/01_mixins/10_hash_test.rb
solutious-rudy-0.7.1 test/01_mixins/10_hash_test.rb
solutious-rudy-0.7.2 test/01_mixins/10_hash_test.rb
solutious-rudy-0.7.3 test/01_mixins/10_hash_test.rb
solutious-rudy-0.7.4 test/01_mixins/10_hash_test.rb
solutious-rudy-0.7.5 test/01_mixins/10_hash_test.rb
solutious-rudy-0.7.6 test/01_mixins/10_hash_test.rb
solutious-rudy-0.8.0 test/01_mixins/10_hash_test.rb
solutious-rudy-0.8.1 test/01_mixins/10_hash_test.rb
rudy-0.7.0 test/01_mixins/10_hash_test.rb
rudy-0.7.3 test/01_mixins/10_hash_test.rb
rudy-0.7.4 test/01_mixins/10_hash_test.rb
rudy-0.7.1 test/01_mixins/10_hash_test.rb
rudy-0.7.6 test/01_mixins/10_hash_test.rb
rudy-0.8.1 test/01_mixins/10_hash_test.rb
rudy-0.8.0 test/01_mixins/10_hash_test.rb