evolbioinfo / gotree

Gotree is a set of command line tools and an API to manipulate phylogenetic trees. It is implemented in Go language.
GNU General Public License v2.0
118 stars 15 forks source link

Fixing newick parsing #23

Closed lucblassel closed 2 months ago

lucblassel commented 2 months ago

This PR fixes #22.

I changed ReadUntilSemiColon so that the lastChar variable checks the last non space or \t character in a line.

All the tests should keep passing (they do on my machine).

N.B: I also changed the instructions on how to run the test script in the README.md file. My default shell is zsh, as such if I just execute ./test.sh the script fails, running bash test.sh yields the expected results.