File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 11name = " BioSymbols"
22uuid = " 3c28c6f8-a34d-59c4-9654-267d177fcfa9"
33authors = [" Ben J. Ward <benjward@protonmail.com" ]
4- version = " 4.0.0 "
4+ version = " 4.0.1 "
55
66[deps ]
77Automa = " 67c07d97-cdcb-5c2c-af73-a7f9c32a568b"
Original file line number Diff line number Diff line change @@ -116,6 +116,10 @@ expected to have the following methods defined:
116116"""
117117abstract type BioSymbol end
118118
119+ Base. length (:: BioSymbol ) = 1
120+ Base. iterate (sym:: BioSymbol ) = (sym, nothing )
121+ Base. iterate (sym:: BioSymbol , state) = nothing
122+
119123include (" nucleicacid.jl" )
120124include (" aminoacid.jl" )
121125
Original file line number Diff line number Diff line change @@ -11,6 +11,21 @@ function round_trip(x)
1111 return x == y
1212end
1313
14+ @testset " BioSymbols" begin
15+ for i in alphabet (DNA)
16+ @test length (i) == 1
17+ @test collect (i) == [i]
18+ end
19+ for i in alphabet (RNA)
20+ @test length (i) == 1
21+ @test collect (i) == [i]
22+ end
23+ for i in alphabet (AminoAcid)
24+ @test length (i) == 1
25+ @test collect (i) == [i]
26+ end
27+ end
28+
1429@testset " NucleicAcids" begin
1530 @testset " Conversions" begin
1631 @testset " UInt8" begin
You can’t perform that action at this time.
0 commit comments