From: <rv...@us...> - 2011-06-14 13:06:19
|
Revision: 916 http://treebase.svn.sourceforge.net/treebase/?rev=916&view=rev Author: rvos Date: 2011-06-14 13:06:13 +0000 (Tue, 14 Jun 2011) Log Message: ----------- Offset was added twice. Modified Paths: -------------- trunk/treebase-core/src/test/java/org/cipres/treebase/domain/nexus/NexmlMatrixConverterTest.java Modified: trunk/treebase-core/src/test/java/org/cipres/treebase/domain/nexus/NexmlMatrixConverterTest.java =================================================================== --- trunk/treebase-core/src/test/java/org/cipres/treebase/domain/nexus/NexmlMatrixConverterTest.java 2011-06-13 16:47:34 UTC (rev 915) +++ trunk/treebase-core/src/test/java/org/cipres/treebase/domain/nexus/NexmlMatrixConverterTest.java 2011-06-14 13:06:13 UTC (rev 916) @@ -161,7 +161,6 @@ // the xml id is the same as the primary key of the equivalent matrix stored by treebase String nexId = nexMatrix.getId(); - boolean foundEquivalentMatrix = false; // iterate over all treebase matrices for the study for ( org.cipres.treebase.domain.matrix.Matrix tbMatrix : tbMatrices ) { @@ -169,7 +168,6 @@ // if true, the matrices are equivalent if ( nexId.equals(tbId) ) { - foundEquivalentMatrix = true; Assert.assertTrue("NeXML matrix "+nexId+ " is one of the known subclasses", nexMatrix instanceof CategoricalMatrix || nexMatrix instanceof MolecularMatrix || nexMatrix instanceof ContinuousMatrix); @@ -219,12 +217,8 @@ //declare coordinate index int nexCharSetCoordinate = nexCharacters.indexOf(nexCharacters.get(i)); - int tbCharSetCoordinate = tbColumnRange.getStartColIndex() + i; - - //Assert.assertTrue( nexCharSetCoordinate == tbCharSetCoordinate ); - //if (nexCharSetCoordinate == tbCharSetCoordinate){ - // System.out.println("I work"); - //} + int tbCharSetCoordinate = i; // you added the offset twice + Assert.assertTrue( nexCharSetCoordinate == tbCharSetCoordinate ); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |