Sha256: f184d0136696f89deedab721658c29674bd794060a9870ad74c941b9804d8433
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
require 'helper' class TestDescent < FunWith::Files::TestCase should "descend and ascend" do root = FunWith::Files.root ascent = [] descent = [] root.ascend do |path| ascent << path end root.descend do |path| descent << path end assert_equal ascent, descent.reverse assert_equal ascent[1], ascent[0].up end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fun_with_files-0.0.18 | ./test/test_descent.rb |
fun_with_files-0.0.15 | ./test/test_descent.rb |