Daniel James
613f154d47
Improved test formatting
2017-10-09 12:34:47 +01:00
Daniel James
6b5b968b97
Format with clang-format 4.0
2017-10-05 10:54:22 +01:00
Daniel James
0676b4f4ca
Change clang format indentation + .editorconfig file
2017-06-11 20:55:59 +01:00
Daniel James
a897843f6c
Try to work around an MSVC bug
...
Although, perhaps I shouldn't be generating over 1000 runs for a test.
2017-05-11 00:36:31 +01:00
Daniel James
80de85f217
Move test state + functions into single class
2017-05-10 19:02:47 +01:00
Daniel James
242e91a9fd
"Sub-test" reporting mechanism
2017-05-10 19:02:47 +01:00
Daniel James
ca80237191
Create fewer classes in merge_exception_tests
...
Will need better error reporting capabilities. Makes RUN_TESTS_QUIET
redundant?
2017-05-10 19:02:47 +01:00
Daniel James
b95ef6de04
Generate less output in merge_exception_tests
2017-05-10 19:02:47 +01:00
Daniel James
76e7322262
Use streams from lightweight test
2017-05-10 19:02:47 +01:00
Daniel James
31c5b5bfa1
Merge exception tests
2017-05-07 17:54:34 +01:00
Daniel James
a1b1df84a0
Store bucket + whether first in group in node
...
Instead of the hash value.
2017-04-27 18:22:44 +01:00
Daniel James
ea64f2e46e
Remove the grouped node stuff
2017-04-27 18:22:43 +01:00
Daniel James
9c8980e6a1
Write out epoint that threw an exception after failure
2017-04-25 01:21:44 +01:00
Daniel James
60127d86e0
After 5 failures stop running an exception test
2017-04-25 01:10:53 +01:00
Daniel James
0c3c738614
Better C++ version info
2017-04-25 01:09:07 +01:00
Daniel James
d47754acac
Include unordered macro values in test output
2017-04-19 10:21:13 +01:00
Daniel James
7a0a598649
Don't track construction when using boost::tuple
...
Because it doesn't quiet work on C++11 compilers onwards.
2017-04-18 10:14:26 +01:00
Daniel James
cafd236a18
Test more memory tracking
2017-04-18 10:14:26 +01:00
Daniel James
21a24d6cd7
Support node_handle
2017-02-27 03:59:02 +00:00
Daniel James
bf5ef9824d
Reformat with clang-format
2017-02-19 13:05:17 +00:00
Daniel James
3bf664ad31
Add a missing header
2017-02-19 13:05:17 +00:00
Daniel James
67ab88b064
Combine most of the detail headers into a single header
2017-02-19 13:05:17 +00:00
Daniel James
e416cafd49
Count instances constructed/destructed in exception tests
2017-01-01 18:35:50 +00:00
Daniel James
a7546e298e
Support 10 arguments in emplace_args
...
Which was the intent, but only supported up to 9 arguments. I doubt
this will make much of a difference.
2016-11-02 07:30:41 +00:00
Daniel James
14ccdbc7b6
Add guards against exceptions that shouldn't happen
...
I'm getting a couple of "terminate called after throwing an instance of
'test::lightweight::test_exception'" errors on the sun platform. Not
sure where they're happening, so I've made the code a tad more resilient
against exceptions that should not really be thrown.
2016-10-24 09:46:13 +01:00
Daniel James
04607dc9f3
Fix for clang.
2016-10-13 17:03:31 +01:00
Daniel James
ece4116329
Try to fix another warning
2016-10-13 10:00:26 +01:00
Daniel James
74abdd6973
Replace boost::next with a simpler version
...
Less optimized, but hopefully it won't cause any warnings.
2016-10-11 13:36:41 +01:00
Daniel James
147885fec4
Add another random generation style.
...
This time for a more limited range of values so that equal values turn
up more often. This is a bit shoddy, but seems like the best way to
improve the existing tests without too much effort.
2016-10-06 21:52:19 +01:00
Daniel James
71d19820ac
Fix signed conversion warnings.
2016-10-05 09:45:53 +01:00
Daniel James
e7b20d2877
Fix exception bug in asssignment.
...
The hash and key equality functions were assigned before allocating new
buckets. If that allocation failed, then the existing elements would be
left in place - so if accessed after the exception they could be in the
wrong buckets or equivalent elements could be incorrectly grouped
together.
2016-10-02 13:04:25 +01:00
Daniel James
13ff69efbf
Make 'ordered' container independent.
2016-09-18 12:22:48 +01:00
Daniel James
8fda9113b8
Make 'has_unique_keys' container independent.
2016-09-18 12:22:48 +01:00
Daniel James
1c606980ec
Update tests for standard changes involving bucket count.
...
It seems my defect report was accepted at some point, and they tweaked
the requirements involving bucket counts. This also makes it possible to
have a bucket count of 0, which I think wasn't allowed in the past. I
don't think I'll change this implementation to do so, but I'd like to be
able to run these tests against standard implementations, so I'm
starting to take that into account.
I believe these changes were made after the C++14 standard, but I've
always been tracking the draft standards, so that doesn't really matter.
2016-09-18 12:22:48 +01:00
Daniel James
0d6e58d9fd
Write out some compiler info before test results.
2016-09-18 12:22:48 +01:00
Daniel James
b4a3c6f460
Fix exception safety in assignment for multimap/multiset.
...
The assignment code seemed like a bit of a premature optimization, I
replaced it with a slightly slower but much simpler implementation.
2016-05-30 15:02:04 +01:00
Daniel James
cc2b1a1ef1
Stop using deprecated boost::iterator.
2016-05-26 09:24:21 +01:00
Daniel James
94071cc6e8
Clean up warnings. Fixes trac #9377 .
2014-01-26 22:57:24 +00:00
Daniel James
2e26534659
Unordered: Improved exception test thing.
...
Allows repetition of exception tests + separate running the tests so that
different tests types or configurations can be mixed up.
[SVN r81030]
2012-10-21 00:20:07 +00:00
Daniel James
e68f0c341e
Unordered: Fix object counts in tests.
...
[SVN r80417]
2012-09-06 08:49:43 +00:00
Daniel James
f47f0f8d16
Unordered: Fix some issues with the tests.
...
[SVN r80416]
2012-09-05 23:33:22 +00:00
Daniel James
b6b54610c6
Unordered: Repeat assign tests several times.
...
[SVN r80411]
2012-09-05 19:02:04 +00:00
Daniel James
612d68eecd
Unordered: More invariant testing.
...
In case there are elements in buckets that aren't in the element list. Required
because the data structure has changed since the original implementation.
[SVN r80226]
2012-08-25 21:55:18 +00:00
Daniel James
958b1d468f
Unordered: Reduce the amount of meta-stuff in the tests.
...
Some of this was there for older compilers, some is just premature
generalization. There's still too much metaprogramming, but these are things
that are relatively easy to remove.
[SVN r79356]
2012-07-08 11:55:10 +00:00
Daniel James
f5292fd9f7
Unordered: Simplify the object count stuff.
...
[SVN r79355]
2012-07-08 11:54:47 +00:00
Daniel James
9a284b4106
Unordered: Remove some junk from the end of memory.hpp
...
[SVN r79353]
2012-07-08 11:54:01 +00:00
Daniel James
98083078a3
Unordered: Remove malloc_allocator.
...
It was originally introduced because of some issues with Boost.Test and older
compilers, neither of which I'm using now. Simplifies a few things.
[SVN r79352]
2012-07-08 11:53:39 +00:00
Daniel James
39bafd7b10
Unordered: Reapply changes reverted in r78788.
...
[SVN r79163]
2012-06-28 20:58:56 +00:00
Daniel James
7158700502
Unordered: Revert unmerged changes in trunk.
...
So that I can fix issues in the beta.
[SVN r78788]
2012-06-01 11:03:22 +00:00
Daniel James
c6f0175c79
Unordered: Combine emplace_args + allocator_helpers.
...
[SVN r78535]
2012-05-21 22:14:59 +00:00