Commit Graph

439 Commits

Author SHA1 Message Date
Daniel James
6e8f9e1c67 Seed the random number generator in tests.
[SVN r41782]
2007-12-06 11:42:28 +00:00
Daniel James
c013d15c16 Remove some minor TODOs. These were more notes to myself than anything.
[SVN r41779]
2007-12-06 11:40:11 +00:00
Daniel James
f0c62d3f0f Test, implement and document 'at'.
[SVN r41125]
2007-11-16 00:31:12 +00:00
Daniel James
a42f9ba834 Remove an old commented out line.
[SVN r41058]
2007-11-13 11:56:58 +00:00
Daniel James
da30fb101a Remove some unused variables.
[SVN r40722]
2007-11-03 16:45:49 +00:00
Daniel James
50c629dcb0 Change insert/erase as specified in n2369, the implementation and tests.
I accidently only checked in the documentation from these changes in the
last check in. This contains the rest of it.


[SVN r39950]
2007-10-11 23:49:31 +00:00
Daniel James
36f4508019 Run most of the unordered container tests (not the exception tests) on warning
level 4 on Visual C++.


[SVN r38648]
2007-08-14 09:55:30 +00:00
Daniel James
6eaf45a0b0 Add the -Wsign-promo flag to the unordered tests on gcc.
[SVN r38566]
2007-08-10 12:01:11 +00:00
Daniel James
f11b2272e4 Change a comment.
[SVN r7459]
2007-07-17 23:19:33 +00:00
Daniel James
aabf1a408b Improve the unordered tests support for some older compilers.
Better testing of elements with equivalent keys.


[SVN r7458]
2007-07-17 23:17:21 +00:00
Daniel James
6af2b965bb Use a portable hash_value in insert_stable_tests in order to support compilers
without ADL.


[SVN r7384]
2007-07-07 09:42:56 +00:00
Daniel James
e4b6b89ed2 Get malloc_allocator working with Visual C++ 6 STL.
[SVN r7383]
2007-07-07 09:39:31 +00:00
Daniel James
10a05bda05 Move malloc_allocator into its own header so that the normal tests don't have
to depend on the exception testing code.


[SVN r7332]
2007-07-01 11:54:22 +00:00
Daniel James
c08cfa18c4 Avoid memory leak error for std::set on g++-3.3
[SVN r7331]
2007-07-01 11:16:57 +00:00
Daniel James
c5b86a0ff8 Remove a couple of pointless comparisons.
[SVN r4257]
2007-05-26 00:00:54 +00:00
Daniel James
ef2f5116dd It is currently proposed that insert, erase and rehash should be stable. Change insert(hint, value) so that it inserts at the end of a group of
equivalent keys (all the other functions were already stable).


[SVN r4146]
2007-05-20 17:37:27 +00:00
Daniel James
e73b90fa86 ** empty log message **
[SVN r4139]
2007-05-19 20:04:14 +00:00
Daniel James
ec240d22ed Stop using Boost.Random as it doesn't support all the platforms I do. The new
code (using std::rand) needs work, but I want to get this in before the sandbox
is converted to subversion.


[SVN r3993]
2007-05-01 21:24:48 +00:00
Daniel James
3e532104d2 Rename some pointer classes to avoid shadowing them in the test allocator.
[SVN r3992]
2007-05-01 21:22:01 +00:00
Daniel James
df1e1598a5 Import latest changes to the unordered containers. Includes:
Copyright update.
Switch back to the version where the sentinel points to itself.
Remove alternative versions of swap.
Workaround a borland bug or two.
More consistent use of class/swap/template.
Avoid a few warnings.
Add a no-throw swap to the allocator for exception testing.


[SVN r3793]
2007-03-18 20:00:59 +00:00
Daniel James
f979c07d2e Check that exceptions thrown when swapping meet the exception requirements.
[SVN r3620]
2007-01-10 00:06:55 +00:00
Daniel James
8d8f9e1942 Add a test that unnecessary copies aren't made of objects inserted.
Make the exception tests track the allocator usage.
Speed up the exception tests a bit.


[SVN r3490]
2006-12-03 23:08:17 +00:00
Daniel James
ec310f7b80 Update the unordered tests. Several changes including extra erase tests. The newer version of the containers have a hairy erase implementation, so need to test all the special cases. Also, a few extra tests here and there, avoid a couple of warnings and remove some old TODOs.
[SVN r3341]
2006-10-31 22:19:26 +00:00
Daniel James
828dbe5078 Test inserting and constructing from input iterators.
Check thrown exception types properly.
Return by reference from 'get_key' so that the keys aren't copied.


[SVN r3115]
2006-08-06 20:42:45 +00:00
Daniel James
dd2ea72220 Update the copyright in the unordered container tests.
[SVN r3040]
2006-07-01 22:31:26 +00:00
Daniel James
f9907e4a55 Get unordered working on Visual C++ 6.5
[SVN r2992]
2006-06-18 13:24:38 +00:00
Daniel James
ff91c72eec Improved support for Visual C++.
[SVN r2985]
2006-06-12 23:30:46 +00:00
Daniel James
58dda15273 Improved support for testing on older versions of gcc.
Link tests.
Plus more...


[SVN r2980]
2006-06-11 19:42:55 +00:00
Daniel James
fbd37a946b More tests for unordered associative containers.
[SVN r2959]
2006-05-21 17:14:11 +00:00
Daniel James
1be8ab0d30 Add some tests for the unordered associative containers.
[SVN r2954]
2006-05-17 17:19:16 +00:00
Daniel James
1301d774e0 Add a small note about testing allocators.
[SVN r2953]
2006-05-17 17:15:26 +00:00
Daniel James
e33f1b21d6 Update the container compile tests to include cbegin/cend. And add the
copyright notice.


[SVN r2952]
2006-05-17 17:09:47 +00:00
Daniel James
56e67a9d7d Get the unordered tests running on Visual C++ 6.5
[SVN r2896]
2006-03-20 20:01:45 +00:00
Daniel James
c9e2182aa9 Some tests.
[SVN r2892]
2006-03-19 22:24:06 +00:00
Daniel James
351cd6e8a1 Remove more of the old unordered containers test files.
[SVN r2878]
2006-02-27 00:54:08 +00:00
Daniel James
a912bbd9ac Remove the old unordered container tests.
[SVN r2877]
2006-02-26 23:28:03 +00:00
Daniel James
dc9951437b Improve this test on Visual C++ 6, still fails though.
[SVN r2737]
2005-11-09 21:11:28 +00:00
Daniel James
8e7ff75ac8 Add a missing include.
[SVN r2735]
2005-11-08 21:30:34 +00:00
Daniel James
8214c43060 Unit tests for unordered containers.
[SVN r2731]
2005-11-05 17:24:20 +00:00