Sha256: a944664b2bf08dd67861c4aac8d6aedbba6168d4c33560d6674ae648a88a0c1e

Contents?: true

Size: 654 Bytes

Versions: 6

Compression:

Stored size: 654 Bytes

Contents

require 'helper'

class TestNodeExtractor < Test::Unit::TestCase
  
  include Tickly::Emitter
  
  def test_parsing_nuke_script_with_indentations
    f = File.open(File.dirname(__FILE__) + "/test-data/nuke_group.txt")
    x = Tickly::NodeExtractor.new("Group")
    
    p = x.parse(f)
    grp = e(
      e("set", "cut_paste_input", se("stack", "0")),
      e("version", "6.3", "v4"),
      e("Group",
        le(
          e("inputs", "0"),
          e("name", "Group1"),
          e("selected", "true")
          )
        ),
      e(:discarded),
      e(:discarded),
      e(:discarded),
      e("end_group")
    )
    assert_equal grp, p
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tickly-1.0.0 test/test_node_extractor.rb
tickly-0.0.8 test/test_node_extractor.rb
tickly-0.0.7 test/test_node_extractor.rb
tickly-0.0.6 test/test_node_extractor.rb
tickly-0.0.5 test/test_node_extractor.rb
tickly-0.0.4 test/test_node_extractor.rb