Sha256: 6329ec81d262587a8c088a30f6e76fdb8619567f1dbf93530c1844f37f9d04ff

Contents?: true

Size: 955 Bytes

Versions: 3

Compression:

Stored size: 955 Bytes

Contents

require 'test/unit'

class PeptideParentTimesTest < Test::Unit::TestCase

  def initialize(arg)
    super(arg)
    @tfiles = "tfiles" # relative test file directory
  end

  def test_blank
    puts "NOT RUNNING ANY TESTS FOR PEPTIDE_PARENT_TIMES RIGHT NOW"
  end

  def Xtest_run
    reply = `ruby ../script/peptide_parent_times.rb 1.00 tfiles/yeast_gly_small-prot.xml tfiles/yeast_gly_small.xml tfiles/020a.mzXML.timeIndex`
    #puts reply
    string1 = File.open((@tfiles +'/'+'yeast_gly_small.1.0_1.0_1.0.parentTimes__020a.working')).read
    assert(string1.size > 20)
    string2 = File.open((@tfiles +'/'+'yeast_gly_small.1.0_1.0_1.0.parentTimes__020a')).read
    assert_equal(string1, string2)
    to_delete = %w(yeast_gly_small.xml.seqchargehash yeast_gly_small-prot.xml.1.0_1.0_1.0.protpep yeast_gly_small.1.0_1.0_1.0.parentTimes__020a)
    with_dir = to_delete.collect { |f| @tfiles + '/' + f }
    with_dir.each { |f| File.unlink f }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mspire-0.1.3 test/tc_peptide_parent_times.rb
mspire-0.1.5 test/tc_peptide_parent_times.rb
mspire-0.1.7 test/tc_peptide_parent_times.rb