|
From: SourceForge.net <no...@so...> - 2012-03-20 16:42:03
|
Bugs item #3509424, was opened at 2012-03-20 09:42 Message generated for change (Tracker Item Submitted) made by fpastore You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=424682&aid=3509424&group_id=39235 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Fabrizio Pastore (fpastore) Assigned to: Nobody/Anonymous (nobody) Summary: TIntObjectHashMap initial capacity wrong Initial Comment: Hi, I noticed that the value passed to the initialCapacity attribute of TIntObjectHashMap constructor seems to not have any relationship with the value returned by method capacity(). Is this a bug or a feature? Following lines show a failing test case: TIntObjectHashMap tIntObjectHashMap0 = new TIntObjectHashMap(200, 2F, 300); assertEquals(200, tIntObjectHashMap0.capacity()); //this test fails, 137 is returned instead of 200 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=424682&aid=3509424&group_id=39235 |