Skip to content

Commit b19cfc6

Browse files
committed
add tests
1 parent 7049f2c commit b19cfc6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/misc.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
end
1414

1515
@testset "Corner cases" begin
16-
import JSONFBCModels: parse_charge
16+
import JSONFBCModels:
17+
eval_gene_association, flatten_gene_association, parse_charge, sortunique
1718

1819
@test parse_charge(1) == 1
1920
@test parse_charge(2.0) == 2
@@ -22,4 +23,7 @@ end
2223
@test parse_charge(nothing) == nothing
2324
@test_throws ArgumentError parse_charge("totally positive charge")
2425
@test_throws DomainError parse_charge(["very charged"])
26+
@test_throws DomainError eval_gene_association(:(xor(gene("a"), gene("b"))), _ -> false)
27+
@test_throws DomainError flatten_gene_association(:(xor(gene("a"), gene("b"))))
28+
@test sortunique([3, 2, 2, 1]) == [1, 2, 3]
2529
end

0 commit comments

Comments
 (0)