Sha256: f5e36e09a569d4abe6b3904193e4d80af0d3b28a456ad5890601e390c97c4def
Contents?: true
Size: 409 Bytes
Versions: 8
Compression:
Stored size: 409 Bytes
Contents
require 'helper' class TestDescent < FunWith::Files::TestCase should "descend and ascend" do root = FunWith::Files.root ascent = [] descent = [] FunWith::Files.root.ascend do |path| ascent << path end FunWith::Files.root.descend do |path| descent << path end assert_equal ascent, descent.reverse assert_equal ascent[1], ascent[0].up end end
Version data entries
8 entries across 8 versions & 1 rubygems