From: cmzmasek@gmail.com Date: Thu, 12 Jan 2012 02:55:44 +0000 (+0000) Subject: mb parsing X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b17e87d9cb4185a396c2021d32d005c5769b6995;p=jalview.git mb parsing --- diff --git a/forester/java/src/org/forester/test/Test.java b/forester/java/src/org/forester/test/Test.java index 0fb8f1d..f380239 100644 --- a/forester/java/src/org/forester/test/Test.java +++ b/forester/java/src/org/forester/test/Test.java @@ -4497,6 +4497,15 @@ public final class Test { if ( p53.getNode( "B (x (a' ,b) f(x);" ) == null ) { return false; } + // + final Phylogeny p54 = factory.create( new StringBuffer( "((A,B):[88],C)" ), new NHXParser() )[ 0 ]; + if ( p54.getNode( "A" ) == null ) { + return false; + } + if ( !p54.toNewHampshire( false, NH_CONVERSION_SUPPORT_VALUE_STYLE.IN_SQUARE_BRACKETS ) + .equals( "((A,B)[88],C);" ) ) { + return false; + } } catch ( final Exception e ) { e.printStackTrace( System.out );