skydevgit / crisscross

Automatically exported from code.google.com/p/crisscross
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

AVLTree not reseting m_size on "empty" method. #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Insert something into AVLTree.
2. Call empty.
3. size()!=0.

What is the expected output? What do you see instead?
Expect size()==0;
m_size is not zero'd during empty.

What version of the product are you using? On what operating system?
0.7 on Win32/Win64/Os X/Linux

Please provide any additional information below.
I needed an AVL tree and the first thing I did was write a bunch of unit 
tests.  This was a pretty quick one to find. :)

Original issue reported on code.google.com by All...@gmail.com on 1 Apr 2008 at 11:27

GoogleCodeExporter commented 9 years ago
Corrected in SVN r692.

Original comment by steven.n...@gmail.com on 2 Apr 2008 at 2:19