Sha256: 679ed44289029c8296218992594a83be4a01fdc83a96a396fe24650bedf89c3d
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 Bytes
Contents
require 'test/unit' require File.dirname(__FILE__) + '/load_lib_path' require 'spec/scan' class ScanTest < Test::Unit::TestCase include Spec def test_add_parent_scan s1 = Scan.new(1,1,0.13) s2 = Scan.new(2,2,0.23) s3 = Scan.new(3,2,0.33) s4 = Scan.new(4,3,0.43) s5 = Scan.new(5,3,0.53) s6 = Scan.new(6,1,0.63) s7 = Scan.new(7,2,0.73) s8 = Scan.new(8,3,0.83) s9 = Scan.new(9,2,0.93) scans = [s1,s2,s3,s4,s5,s6,s7,s8,s9] parents = [nil,s1,s1,s3,s3,nil,s6,s7,s6] Scan.add_parent_scan(scans) scans.each_with_index do |scan,i| assert_equal parents[i], scan.parent end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mspire-0.1.3 | test/tc_scan.rb |