Sha256: c78cdcf76e2ef2b8df19e68ad4ba01397485bd7bccbcadaa0ca9a776b137ee58

Contents?: true

Size: 916 Bytes

Versions: 21

Compression:

Stored size: 916 Bytes

Contents

require 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

21 entries across 21 versions & 1 rubygems

Version Path
tracksperanto-2.0.1 test/export/test_match_mover_export.rb
tracksperanto-2.0.0 test/export/test_match_mover_export.rb
tracksperanto-1.9.9 test/export/test_match_mover_export.rb
tracksperanto-1.9.8 test/export/test_match_mover_export.rb
tracksperanto-1.9.6 test/export/test_match_mover_export.rb
tracksperanto-1.9.5 test/export/test_match_mover_export.rb
tracksperanto-1.9.4 test/export/test_match_mover_export.rb
tracksperanto-1.9.3 test/export/test_match_mover_export.rb
tracksperanto-1.9.2 test/export/test_match_mover_export.rb
tracksperanto-1.9.1 test/export/test_match_mover_export.rb
tracksperanto-1.9.0 test/export/test_match_mover_export.rb
tracksperanto-1.8.4 test/export/test_match_mover_export.rb
tracksperanto-1.8.2 test/export/test_match_mover_export.rb
tracksperanto-1.8.1 test/export/test_match_mover_export.rb
tracksperanto-1.8.0 test/export/test_match_mover_export.rb
tracksperanto-1.7.5 test/export/test_match_mover_export.rb
tracksperanto-1.7.4 test/export/test_match_mover_export.rb
tracksperanto-1.7.3 test/export/test_match_mover_export.rb
tracksperanto-1.7.2 test/export/test_match_mover_export.rb
tracksperanto-1.7.1 test/export/test_match_mover_export.rb