test/import/test_nuke_import.rb in tracksperanto-3.5.4 vs test/import/test_nuke_import.rb in tracksperanto-3.5.5

- old
+ new

@@ -277,9 +277,20 @@ trackers = parser.to_a assert_equal 5, trackers.length end + def test_no_failure_with_negative_frame_indices_in_curve + fixture = File.open(File.dirname(__FILE__) + '/samples/nuke/sh110_trackers_004_ipad1.nk') + parser = Tracksperanto::Import::NukeScript.new(:io => fixture) + parser.width = 2688 + parser.height = 1512 + trackers = parser.to_a + assert_equal 4, trackers.length + assert_equal 'Tracker1_track_1', trackers[0].name + assert_equal 99, trackers[0].length + end + def test_zip_channels tuples_x = [[1, 125], [3, 234], [5, 456], [9,876]] tuples_y = [[2, 437], [3, 123], [6, 432], [9, 430]] result = Tracksperanto::Import::NukeScript.new(:io => StringIO.new).send(:zip_curve_tuples, tuples_x, tuples_y) assert_equal [[3, 234, 123], [9, 876, 430]], result