diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-04-22 18:15:17 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-04-22 18:15:17 -0700 |
commit | fb4c4ceba416376751196cdbbdb5f7240e08a405 (patch) | |
tree | bb874085d6d7715c24da544e9f71ef05e6a2a80a /sys/libbio/test.c | |
parent | 583656a3537bc43a28c58111520143df04bf27f2 (diff) |
fix: bug squashing with newick parser
Diffstat (limited to 'sys/libbio/test.c')
-rw-r--r-- | sys/libbio/test.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/libbio/test.c b/sys/libbio/test.c index 00345c4..18bb993 100644 --- a/sys/libbio/test.c +++ b/sys/libbio/test.c @@ -47,14 +47,19 @@ main() { init(); + error err; bio·Tree t; - Stream *fd; + Stream *fd[2]; + + fd[0] = io·open("/home/nolln/root/data/test/example.nwk", "r"); + fd[1] = io·open("/home/nolln/root/data/test/example.proc.nwk", "w"); - fd = io·open("/home/nolln/root/data/test/example.nwk", "r"); printf("starting\n"); - t = bio·readnewick(fd, arena); - io·close(fd); + t = bio·readnewick(fd[0], arena); + err = bio·writenewick(t, fd[1]); printf("ending\n"); + + io·close(fd[0]); io·close(fd[1]); return 0; } |