University of Connecticut University of UC Title Fallback Connecticut

Test saving trees

Add the following line to main.cpp (after createTestTree() is called):

std::cout << tm.makeNewick(3) << std::endl;

You should see the following additional line appear in the output when the program is run:

((1:0.100,2:0.100):0.100,3:0.100)

Note that 3 decimal places are used in outputting edge lengths because you supplied 3 as an argument to the makeNewick function.