- all in
runtests.jl
, which calls other test files - to see deprecation warnings when running things locally, start julia with
and possibly other options (like --project).
julia --depwarn=yes
- generally, code in file
src/x.jl
is tested bytest/test_x.jl
, but see below for what older test files do (related to SNaQ).
checkout PhyloNetworks v0.9.1 or older to see those older files.
test_add2hyb.jl add a first hybrid, then a second hybrid that makes a bad triangle, and the functions should identify it
test_deleteHybridizationUpdate.jl checks that all attributes are correctly updated after deleting a hybridization (1 and 2 hybrids)
test_5taxon_readTopology.jl runs all the tests for the eight 5taxon networks by reading from parenthetical format and then updating
aux functions: test_functions_5taxon_read.jl
test_calculateExpCF.jl runs all the tests for Case G, bad diamond and bad triangle for calculation of expCF
test_calculateExpCF2.jl computes the expCF for the n6 network
test_hasEdge.jl tests if the attribute qnet.hasEdge is correctly updated after extracting quartets for case G. It also checks if net.ht, net.numht, qnet.indexht are correctly set for Case G.
test_optBLparts.jl tests the parts of optBL separately to see if they work.
test_parameters.jl get net.ht and net.numht for all the 5 taxon networks
test_correctLik.jl computes the pseudolik for a tree and a network with 1 hybrid and checks that it is correctly computed
test_partition.jl (1 hybrid) and test_partition2.jl (2 hybrids) check if the attribute of partition is correctly set