Skip to content

Commit

Permalink
ModelAsserts: fix bug in toString method
Browse files Browse the repository at this point in the history
  • Loading branch information
maarzt committed Oct 7, 2024
1 parent a7857d0 commit 821c15a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ private static void appendEdgeTags( StringBuilder sb, Model model )
line.append( "->" );
line.append( spotToString( target ) );
line.append( ":" );
lines.add( line.toString() );
for ( int i = 0; i < edgeTags.size(); i++ )
{
TagSetStructure.Tag tag = edgeTags.get( i ).get( link );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void testAssertModelEquals_tagSets()
+ "== Tag set: index=1 name=tabset2 (no tags)\n"
+ "Spot(label=A, timepoint=0, position=[0.0, 0.0, 0.0], cov=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]): 0=tag1\n"
+ "Spot(label=B, timepoint=1, position=[0.0, 0.0, 0.0], cov=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]): 0=tag2\n"
+ "Spot(label=A, timepoint=0, position=[0.0, 0.0, 0.0], cov=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]])->Spot(label=B, timepoint=1, position=[0.0, 0.0, 0.0], cov=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]):Spot(label=A, timepoint=0, position=[0.0, 0.0, 0.0], cov=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]])->Spot(label=B, timepoint=1, position=[0.0, 0.0, 0.0], cov=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]): 0=tag1";
+ "Spot(label=A, timepoint=0, position=[0.0, 0.0, 0.0], cov=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]])->Spot(label=B, timepoint=1, position=[0.0, 0.0, 0.0], cov=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]): 0=tag1";
assertEquals( expected, text );
}

Expand Down

0 comments on commit 821c15a

Please sign in to comment.