test/unit/bio/db/test_gff.rb in bio-2.0.0 vs test/unit/bio/db/test_gff.rb in bio-2.0.1
- old
+ new
@@ -180,9 +180,14 @@
str = "seq1\tBLASTX\tsimilarity\t101\t235\t87.1\t+\t0\tTarget HBA_HUMAN 11 55 ; E_value 0.0003 ; Align 101 11 ; Align 179 36 ; Comment \"Please ignore this \\\"Comment\\\" attribute; Escape \\032\\037 and \\\\\\t\\r\\n\\f\\b\\a\\e\\v; This is test.\" 123 4.56e-34 \"Test for freetext\" ; Note \"\" ; Misc IdString ; Misc \"free text\" ; Misc 5678\n"
assert_equal(str, @obj.to_s)
end
+ def test_self_parse
+ obj2 = Bio::GFF::GFF2::Record.parse(@obj.to_s)
+ assert_equal(@obj, obj2)
+ end
+
def test_eqeq
obj2 = Bio::GFF::GFF2::Record.new(@obj.to_s)
assert_equal(true, @obj == obj2)
end