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