[BioRuby-cvs] bioruby/test/unit/bio/db test_fasta.rb,1.1,1.2
Mitsuteru C. Nakao
nakao at pub.open-bio.org
Wed Nov 23 06:21:17 EST 2005
Update of /home/repository/bioruby/bioruby/test/unit/bio/db
In directory pub.open-bio.org:/tmp/cvs-serv16461/test/unit/bio/db
Modified Files:
test_fasta.rb
Log Message:
* Fixed the order of arguments of assert_equal.
Index: test_fasta.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/db/test_fasta.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_fasta.rb 27 Oct 2005 14:21:23 -0000 1.1
--- test_fasta.rb 23 Nov 2005 11:21:15 -0000 1.2
***************
*** 32,37 ****
def test_delimiter
! assert_equal(Bio::FastaFormat::DELIMITER, "\n>")
! assert_equal(Bio::FastaFormat::RS, "\n>")
end
--- 32,37 ----
def test_delimiter
! assert_equal("\n>", Bio::FastaFormat::DELIMITER)
! assert_equal("\n>", Bio::FastaFormat::RS)
end
***************
*** 68,137 ****
def test_entry
data = ">sce:YBR160W CDC28, SRM5; cyclin-dependent protein kinase catalytic subunit [EC:2.7.1.-] [SP:CC28_YEAST]\nMSGELANYKRLEKVGEGTYGVVYKALDLRPGQGQRVVALKKIRLESEDEG\nVPSTAIREISLLKELKDDNIVRLYDIVHSDAHKLYLVFEFLDLDLKRYME\nGIPKDQPLGADIVKKFMMQLCKGIAYCHSHRILHRDLKPQNLLINKDGNL\nKLGDFGLARAFGVPLRAYTHEIVTLWYRAPEVLLGGKQYSTGVDTWSIGC\nIFAEMCNRKPIFSGDSEIDQIFKIFRVLGTPNEAIWPDIVYLPDFKPSFP\nQWRRKDLSQVVPSLDPRGIDLLDKLLAYDPINRISARRAAIHPYFQES\n"
! assert_equal(@obj.entry, data)
end
def test_entry_id
! assert_equal(@obj.entry_id, 'sce:YBR160W')
end
def test_definition
data = "sce:YBR160W CDC28, SRM5; cyclin-dependent protein kinase catalytic subunit [EC:2.7.1.-] [SP:CC28_YEAST]"
! assert_equal(@obj.definition, data)
end
def test_data
data = "\nMSGELANYKRLEKVGEGTYGVVYKALDLRPGQGQRVVALKKIRLESEDEG\nVPSTAIREISLLKELKDDNIVRLYDIVHSDAHKLYLVFEFLDLDLKRYME\nGIPKDQPLGADIVKKFMMQLCKGIAYCHSHRILHRDLKPQNLLINKDGNL\nKLGDFGLARAFGVPLRAYTHEIVTLWYRAPEVLLGGKQYSTGVDTWSIGC\nIFAEMCNRKPIFSGDSEIDQIFKIFRVLGTPNEAIWPDIVYLPDFKPSFP\nQWRRKDLSQVVPSLDPRGIDLLDKLLAYDPINRISARRAAIHPYFQES\n"
! assert_equal(@obj.data, data)
end
def test_seq
seq = 'MSGELANYKRLEKVGEGTYGVVYKALDLRPGQGQRVVALKKIRLESEDEGVPSTAIREISLLKELKDDNIVRLYDIVHSDAHKLYLVFEFLDLDLKRYMEGIPKDQPLGADIVKKFMMQLCKGIAYCHSHRILHRDLKPQNLLINKDGNLKLGDFGLARAFGVPLRAYTHEIVTLWYRAPEVLLGGKQYSTGVDTWSIGCIFAEMCNRKPIFSGDSEIDQIFKIFRVLGTPNEAIWPDIVYLPDFKPSFPQWRRKDLSQVVPSLDPRGIDLLDKLLAYDPINRISARRAAIHPYFQES'
! assert_equal(@obj.seq, seq)
end
def test_length
! assert_equal(@obj.length, 298)
end
def test_naseq
seq = 'msgelanykrlekvgegtygvvykaldlrpgqgqrvvalkkirlesedegvpstaireisllkelkddnivrlydivhsdahklylvfefldldlkrymegipkdqplgadivkkfmmqlckgiaychshrilhrdlkpqnllinkdgnlklgdfglarafgvplraytheivtlwyrapevllggkqystgvdtwsigcifaemcnrkpifsgdseidqifkifrvlgtpneaiwpdivylpdfkpsfpqwrrkdlsqvvpsldprgidlldkllaydpinrisarraaihpyfqes'
! assert_equal(@obj.naseq, seq)
end
def test_nalen
! assert_equal(@obj.nalen, 298)
end
def test_aaseq
seq = "MSGELANYKRLEKVGEGTYGVVYKALDLRPGQGQRVVALKKIRLESEDEGVPSTAIREISLLKELKDDNIVRLYDIVHSDAHKLYLVFEFLDLDLKRYMEGIPKDQPLGADIVKKFMMQLCKGIAYCHSHRILHRDLKPQNLLINKDGNLKLGDFGLARAFGVPLRAYTHEIVTLWYRAPEVLLGGKQYSTGVDTWSIGCIFAEMCNRKPIFSGDSEIDQIFKIFRVLGTPNEAIWPDIVYLPDFKPSFPQWRRKDLSQVVPSLDPRGIDLLDKLLAYDPINRISARRAAIHPYFQES"
! assert_equal(@obj.aaseq, seq)
end
def test_aalen
! assert_equal(@obj.aalen, 298)
end
def test_identifiers
! assert_equal(@obj.identifiers, '')
end
def test_gi
! assert_equal(@obj.gi, '')
end
def test_accession
! assert_equal(@obj.accession, '')
end
def test_accessions
! assert_equal(@obj.accessions, '')
end
def test_acc_version
! assert_equal(@obj.acc_version, '')
end
def test_locus
! assert_equal(@obj.locus, '')
end
--- 68,137 ----
def test_entry
data = ">sce:YBR160W CDC28, SRM5; cyclin-dependent protein kinase catalytic subunit [EC:2.7.1.-] [SP:CC28_YEAST]\nMSGELANYKRLEKVGEGTYGVVYKALDLRPGQGQRVVALKKIRLESEDEG\nVPSTAIREISLLKELKDDNIVRLYDIVHSDAHKLYLVFEFLDLDLKRYME\nGIPKDQPLGADIVKKFMMQLCKGIAYCHSHRILHRDLKPQNLLINKDGNL\nKLGDFGLARAFGVPLRAYTHEIVTLWYRAPEVLLGGKQYSTGVDTWSIGC\nIFAEMCNRKPIFSGDSEIDQIFKIFRVLGTPNEAIWPDIVYLPDFKPSFP\nQWRRKDLSQVVPSLDPRGIDLLDKLLAYDPINRISARRAAIHPYFQES\n"
! assert_equal(data, @obj.entry)
end
def test_entry_id
! assert_equal('sce:YBR160W', @obj.entry_id)
end
def test_definition
data = "sce:YBR160W CDC28, SRM5; cyclin-dependent protein kinase catalytic subunit [EC:2.7.1.-] [SP:CC28_YEAST]"
! assert_equal(data, @obj.definition)
end
def test_data
data = "\nMSGELANYKRLEKVGEGTYGVVYKALDLRPGQGQRVVALKKIRLESEDEG\nVPSTAIREISLLKELKDDNIVRLYDIVHSDAHKLYLVFEFLDLDLKRYME\nGIPKDQPLGADIVKKFMMQLCKGIAYCHSHRILHRDLKPQNLLINKDGNL\nKLGDFGLARAFGVPLRAYTHEIVTLWYRAPEVLLGGKQYSTGVDTWSIGC\nIFAEMCNRKPIFSGDSEIDQIFKIFRVLGTPNEAIWPDIVYLPDFKPSFP\nQWRRKDLSQVVPSLDPRGIDLLDKLLAYDPINRISARRAAIHPYFQES\n"
! assert_equal(data, @obj.data)
end
def test_seq
seq = 'MSGELANYKRLEKVGEGTYGVVYKALDLRPGQGQRVVALKKIRLESEDEGVPSTAIREISLLKELKDDNIVRLYDIVHSDAHKLYLVFEFLDLDLKRYMEGIPKDQPLGADIVKKFMMQLCKGIAYCHSHRILHRDLKPQNLLINKDGNLKLGDFGLARAFGVPLRAYTHEIVTLWYRAPEVLLGGKQYSTGVDTWSIGCIFAEMCNRKPIFSGDSEIDQIFKIFRVLGTPNEAIWPDIVYLPDFKPSFPQWRRKDLSQVVPSLDPRGIDLLDKLLAYDPINRISARRAAIHPYFQES'
! assert_equal(seq, @obj.seq)
end
def test_length
! assert_equal(298, @obj.length)
end
def test_naseq
seq = 'msgelanykrlekvgegtygvvykaldlrpgqgqrvvalkkirlesedegvpstaireisllkelkddnivrlydivhsdahklylvfefldldlkrymegipkdqplgadivkkfmmqlckgiaychshrilhrdlkpqnllinkdgnlklgdfglarafgvplraytheivtlwyrapevllggkqystgvdtwsigcifaemcnrkpifsgdseidqifkifrvlgtpneaiwpdivylpdfkpsfpqwrrkdlsqvvpsldprgidlldkllaydpinrisarraaihpyfqes'
! assert_equal(seq, @obj.naseq)
end
def test_nalen
! assert_equal(298, @obj.nalen)
end
def test_aaseq
seq = "MSGELANYKRLEKVGEGTYGVVYKALDLRPGQGQRVVALKKIRLESEDEGVPSTAIREISLLKELKDDNIVRLYDIVHSDAHKLYLVFEFLDLDLKRYMEGIPKDQPLGADIVKKFMMQLCKGIAYCHSHRILHRDLKPQNLLINKDGNLKLGDFGLARAFGVPLRAYTHEIVTLWYRAPEVLLGGKQYSTGVDTWSIGCIFAEMCNRKPIFSGDSEIDQIFKIFRVLGTPNEAIWPDIVYLPDFKPSFPQWRRKDLSQVVPSLDPRGIDLLDKLLAYDPINRISARRAAIHPYFQES"
! assert_equal(seq, @obj.aaseq)
end
def test_aalen
! assert_equal(298, @obj.aalen)
end
def test_identifiers
! assert_equal('', @obj.identifiers)
end
def test_gi
! assert_equal('', @obj.gi)
end
def test_accession
! assert_equal('', @obj.accession)
end
def test_accessions
! assert_equal('', @obj.accessions)
end
def test_acc_version
! assert_equal('', @obj.acc_version)
end
def test_locus
! assert_equal('', @obj.locus)
end
***************
*** 151,172 ****
def test_entry
! assert_equal(@obj.entry, ">CRA3575282.F\n24 15 23 29 20 13 20 21 21 23 22 25 13 22 17 15 25 27 32 26 \n32 29 29 25\n")
end
def test_entry_id
! assert_equal(@obj.entry_id, 'CRA3575282.F')
end
def test_definition
! assert_equal(@obj.definition, 'CRA3575282.F')
end
def test_data
data = [24, 15, 23, 29, 20, 13, 20, 21, 21, 23, 22, 25, 13, 22, 17, 15, 25, 27, 32, 26, 32, 29, 29, 25]
! assert_equal(@obj.data, data)
end
def test_length
! assert_equal(@obj.length, 24)
end
--- 151,172 ----
def test_entry
! assert_equal(">CRA3575282.F\n24 15 23 29 20 13 20 21 21 23 22 25 13 22 17 15 25 27 32 26 \n32 29 29 25\n", @obj.entry)
end
def test_entry_id
! assert_equal('CRA3575282.F', @obj.entry_id)
end
def test_definition
! assert_equal('CRA3575282.F', @obj.definition)
end
def test_data
data = [24, 15, 23, 29, 20, 13, 20, 21, 21, 23, 22, 25, 13, 22, 17, 15, 25, 27, 32, 26, 32, 29, 29, 25]
! assert_equal(data, @obj.data)
end
def test_length
! assert_equal(24, @obj.length)
end
More information about the bioruby-cvs
mailing list