test/import/test_3de_import.rb in tracksperanto-2.1.1 vs test/import/test_3de_import.rb in tracksperanto-2.2.0
- old
+ new
@@ -10,14 +10,11 @@
end
def test_parsing_from_importable
fixture = File.open(File.dirname(__FILE__) + '/samples/3de_v4/3de_export_cube.txt')
- parser = Tracksperanto::Import::Equalizer4.new
- parser.width = 1024
- parser.height = 512
- trackers = parser.parse(fixture)
-
+ parser = Tracksperanto::Import::Equalizer4.new(:io => fixture, :width => 1024, :height => 512)
+ trackers = parser.to_a
assert_equal 8, trackers.length
first_t = trackers[0]
assert_equal "01", first_t.name
assert_equal 61, first_t.length
\ No newline at end of file