Sha256: bbf313bf197bcb57e8af80f3f3bd13c6a1dbbb05d62f330e1ec70321a382fd56

Contents?: true

Size: 552 Bytes

Versions: 36

Compression:

Stored size: 552 Bytes

Contents

group "Mixins"
library :rudy, File.expand_path(File.join(GYMNASIUM_HOME, '..', 'lib'))

tryout "Hash" do
  setup do
    def one_lvl; {:empty=>1}; end
    def two_lvls; {:l1 => {:empty=>1}}; end
    def three_lvls; { :l1 => { :l2 => {:empty=>1, :empty=>1} } }; end
    def six_lvls; {:l1 => {:l2 => {:l3 => {:l4 => {:l5 => {}, :empty=>1}, :empty=>1}}}}; end
  end
  
  dream [1, 2, 3, 6]
  drill "should calculate deepest point" do
    [one_lvl.deepest_point, two_lvls.deepest_point, 
     three_lvls.deepest_point, six_lvls.deepest_point]
  end
end


Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
solutious-rudy-0.9.0 tryouts/01_mixins/01_hash_tryouts.rb
solutious-rudy-0.9.1 tryouts/01_mixins/01_hash_tryouts.rb
solutious-rudy-0.9.2 tryouts/01_mixins/01_hash_tryouts.rb
solutious-rudy-0.9.3 tryouts/01_mixins/01_hash_tryouts.rb
solutious-rudy-0.9.4 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.020 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.019 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.018 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.017 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.016 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.015 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.014 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.013 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.012 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.011 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.010 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.009 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.008 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.007 tryouts/01_mixins/01_hash_tryouts.rb
rudy-0.9.8.006 tryouts/01_mixins/01_hash_tryouts.rb