Sha256: 8b0bc45ec6082aaf06e3a25f2cffe6b38e46fe5b16c2efa2d33106f1e0e62122
Contents?: true
Size: 919 Bytes
Versions: 3
Compression:
Stored size: 919 Bytes
Contents
require File.expand_path(File.dirname(__FILE__)) + '/../helper' class MatchMoverRZMLImportTest < Test::Unit::TestCase DELTA = 0.1 P = File.dirname(__FILE__) + '/samples/match_mover_rzml/md_145_1070_right_t1.rzml' def test_introspects_properly i = Tracksperanto::Import::MatchMoverRZML assert_equal "MatchMover RZML .rzml file", i.human_name assert i.autodetects_size? end def test_parsing_from_matchmover fixture = File.open(P) parser = Tracksperanto::Import::MatchMoverRZML.new(:io => fixture) trackers = parser.to_a assert_equal 2048, parser.width assert_equal 1152, parser.height assert_equal 2, trackers.length t = trackers[0] assert_equal 0, trackers[0][0].frame assert_equal 1, trackers[0][1].frame assert_in_delta 626.7, trackers[0][0].abs_x, DELTA assert_in_delta 663.4, trackers[0][0].abs_y, DELTA end end
Version data entries
3 entries across 3 versions & 1 rubygems