Sha256: 577a32f75905ae13e07dcaf292191bda0ed8db9a49e46b9cdde92cc0268327a4

Contents?: true

Size: 1004 Bytes

Versions: 1

Compression:

Stored size: 1004 Bytes

Contents

require File.join( File.dirname(__FILE__), "..", "test_helper")

# ralbum
require 'ralbum/photo_tree/jalbum_photo_tree'

class TestJalbumPhotoTreeBuilder < Test::Unit::TestCase

  def test_simple
    builder = JalbumPhotoTreeBuilder.new
    photo_tree = builder.build_photo_tree_from_directory( $JALBUM_PHOTOTREE_DIRECTORY )

    # treevisitor

    out =<<EOS
'test_jalbum_phototree'
`-- 'src'
    `-- 'flowers'
        |-- 'IMG_1469.wt.jpg'
        |-- 'IMG_2291.jpg'
        |-- 'IMG_2598.jpg'
        |-- 'IMG_3068.jpg'
        |-- 'IMG_3323.jpg'
        `-- 'IMG_3348.jpg'
EOS

    # puts photo_tree.to_str
    assert_equal out, photo_tree.to_str


    # assert_equal(  3, photoTree.nr_childs )
    # assert_equal( 16, photoTree.nr_leaves )

    # builder.read_meta_info_old_format( photoTree )
    # photoTreeItem = photoTree.find( "r_photo01.jpg" )
    # assert_equal( "descrizione di r_photo01.jpg", photoTreeItem["description"] )
    # assert_equal( "100", photoTreeItem["iso_speed"])
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gf-ralbum-0.0.5 test/ralbum/photo_tree/tc_jalbum_photo_tree.rb