Sha256: 711495ac1aa7c6d9f95024ab8362d26af3d9f1269e6d0a2ea74acdfa38d34b90
Contents?: true
Size: 769 Bytes
Versions: 1
Compression:
Stored size: 769 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/dir/self/ascend.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/core/dir/self/ascend.rb' require 'test/unit' class TCDir < Test::Unit::TestCase def test_ascend_1 c = [] Dir.ascend( "this/path/up" ) do |path| c << path end assert_equal( 'this/path/up', c[0] ) assert_equal( 'this/path', c[1] ) assert_equal( 'this', c[2] ) end def test_ascend_2 c = [] Dir.ascend( "this/path/up", false ) do |path| c << path end assert_equal( 'this/path', c[0] ) assert_equal( 'this', c[1] ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/core/dir/self/test_ascend.rb |