gabrielladin / jc-tree

Automatically exported from code.google.com/p/jc-tree
0 stars 0 forks source link

BUG in LinkedTree.leaves() #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
LinkedTree.leaves() returns wrong results. 

To help you - instead of (as in LinkedTree):

 private List<E> leaves(Entry<E> node) 

it should be something like (as in ArrayListTree)

private List<E> leaves(int nodeIndex, ArrayList<E> list).

And one small recommendation, to be this library more public accepted please 
write tests. Without tests is pretty useless.

Original issue reported on code.google.com by diamond...@gmail.com on 5 Jun 2012 at 8:27

GoogleCodeExporter commented 9 years ago
I will have a look at it and report back. Thanks for the help. By Tests you 
mean JUnit kind of tests?

Original comment by gsaxen...@gmail.com on 11 Jun 2012 at 4:03

GoogleCodeExporter commented 9 years ago

Original comment by gsaxen...@gmail.com on 14 Jun 2012 at 4:12

GoogleCodeExporter commented 9 years ago
Resolved in jc-tree-1.1.2.jar

Original comment by gsaxen...@gmail.com on 22 Jun 2012 at 5:17