Sha256: 2724a2a708996b13b37151aa6d1e33a35a6c8c2acbb6185551651dcb08c2cdcf
Contents?: true
Size: 619 Bytes
Versions: 6
Compression:
Stored size: 619 Bytes
Contents
require 'test/unit' 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
mspire-0.2.0 | test/tc_scan.rb |
mspire-0.1.7 | test/tc_scan.rb |
mspire-0.2.1 | test/tc_scan.rb |
mspire-0.2.2 | test/tc_scan.rb |
mspire-0.2.4 | test/tc_scan.rb |
mspire-0.1.5 | test/tc_scan.rb |