test/import/test_syntheyes_import.rb in tracksperanto-1.9.9 vs test/import/test_syntheyes_import.rb in tracksperanto-2.0.0

- old
+ new

@@ -8,15 +8,12 @@ assert !i.autodetects_size? end def test_parsing_from_importable fixture = File.open(File.dirname(__FILE__) + '/samples/syntheyes_2d_paths/shake_tracker_nodes_to_syntheyes.txt') + parser = Tracksperanto::Import::Syntheyes.new(:width => 2560, :height => 1080) - parser = Tracksperanto::Import::Syntheyes.new - parser.width = 2560 - parser.height = 1080 - trackers = parser.parse(fixture) assert_equal 50, trackers.length first_kf = trackers[0].keyframes[0] @@ -28,24 +25,26 @@ assert_in_delta 0.0, first_kf.residual, DELTA end def test_parsing_cola_plate fixture = File.open(File.dirname(__FILE__) + '/samples/syntheyes_2d_paths/cola_plate.txt') - parser = Tracksperanto::Import::Syntheyes.new - parser.width = 1920 - parser.height = 1080 + parser = Tracksperanto::Import::Syntheyes.new(:width => 1920, :height => 1080) trackers = parser.parse(fixture) assert_equal 6, trackers.length end def test_parsing_with_one_tracker fixture = File.open(File.dirname(__FILE__) + '/samples/syntheyes_2d_paths/one_tracker.txt') - parser = Tracksperanto::Import::Syntheyes.new - parser.width = 1920 - parser.height = 1080 + parser = Tracksperanto::Import::Syntheyes.new(:width => 1920, :height => 1080) trackers = parser.parse(fixture) assert_equal 1, trackers.length assert_equal 49, trackers[0].length end + def test_parsing_from_sy_2010 + fixture = File.open(File.dirname(__FILE__) + '/samples/syntheyes_2d_paths/morePoints_sy2010.txt') + parser = Tracksperanto::Import::Syntheyes.new(:width => 1920, :height => 1080) + trackers = parser.parse(fixture) + assert_equal 26, trackers.length + end end \ No newline at end of file