Sha256: eee97cabf154d88e0ace6a2cd8c10bd8583bc388ce4de3ae3b9a43a4e792f7ef

Contents?: true

Size: 934 Bytes

Versions: 12

Compression:

Stored size: 934 Bytes

Contents

require File.expand_path(File.dirname(__FILE__)) + '/../helper'

class MatchmoverExportTest < Test::Unit::TestCase
  include ParabolicTracks
  P = File.dirname(__FILE__) + "/samples/ref_matchmover.rz2"
  
  def test_export_output_written
    ensure_same_output Tracksperanto::Export::MatchMover, P
  end
  
  def test_exporter_meta
    assert_equal "matchmover.rz2", Tracksperanto::Export::MatchMover.desc_and_extension
    assert_equal "Matchmover 2D export .rz2 file", Tracksperanto::Export::MatchMover.human_name
  end
  
  def test_width_and_height_not_stepping_on_each_other_in_preamble
    o = StringIO.new
    expt = Tracksperanto::Export::MatchMover.new(o)
    expt.start_export(1080, 720)
    expt.end_export
    assert_equal "imageSequence\t\"Sequence 01\"\n{\n\t1080\t720\tf( \"D:/temp/sequence.%04d.dpx\" )\tb( 1 211 1 )\t\n}\n",
      o.string,
      "The output width and height should be properly substituted"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tracksperanto-2.5.0 test/export/test_match_mover_export.rb
tracksperanto-2.4.1 test/export/test_match_mover_export.rb
tracksperanto-2.3.3 test/export/test_match_mover_export.rb
tracksperanto-2.3.2 test/export/test_match_mover_export.rb
tracksperanto-2.3.1 test/export/test_match_mover_export.rb
tracksperanto-2.3.0 test/export/test_match_mover_export.rb
tracksperanto-2.2.4 test/export/test_match_mover_export.rb
tracksperanto-2.2.2 test/export/test_match_mover_export.rb
tracksperanto-2.2.0 test/export/test_match_mover_export.rb
tracksperanto-2.1.1 test/export/test_match_mover_export.rb
tracksperanto-2.1.0 test/export/test_match_mover_export.rb
tracksperanto-2.0.2 test/export/test_match_mover_export.rb