Commit Graph

291 Commits

Author SHA1 Message Date
Daniel James
9353d3e783 Fix broken link in hash documentation source.
[SVN r30475]
2005-08-04 22:16:22 +00:00
Daniel James
d45e9a26f0 Fixed some of the include statements in the documentation.
[SVN r30464]
2005-08-04 17:39:42 +00:00
Daniel James
0c3a28a294 Add tests for linking two object files that include the hash libraries.
[SVN r29710]
2005-06-20 21:45:54 +00:00
Daniel James
1b1f076054 Fix a typo in hash_float_test.
[SVN r29120]
2005-05-21 17:15:10 +00:00
Daniel James
9afcdb022b Tweak the hash tests a bit more.
[SVN r29119]
2005-05-21 17:10:39 +00:00
Daniel James
c06e85147c Write a better error message when the denormalised minimum float hash test
fails.


[SVN r29118]
2005-05-21 16:46:53 +00:00
Daniel James
bfd5380e3c Try to make sure that the different functions in hash_function_pointer_test
really are different.


[SVN r28833]
2005-05-11 21:32:17 +00:00
Daniel James
097560f27b Try to fix the failing denorm_min hash_value test by explicitly casting the
result of denorm_min() (I think it might be returning the wrong type).


[SVN r28553]
2005-05-01 13:43:56 +00:00
Daniel James
1564e9c767 Change the description of functional/hash.
[SVN r28436]
2005-04-23 13:07:27 +00:00
Daniel James
a461b5b1c7 Add some links to the hash documentation, acknowledgements for the review,
fixed some errors.


[SVN r28427]
2005-04-22 22:08:49 +00:00
Daniel James
90b21239b4 Fix a clumsy mistake in hash_float_test
[SVN r28402]
2005-04-22 06:37:41 +00:00
Daniel James
65ece8bac0 Change hash_custom_test to have a cleaner implementation (along the lines of
Peter Dimov's suggestion) and to only include the hash headers after declaring
the class.


[SVN r28394]
2005-04-21 23:43:51 +00:00
Daniel James
b9f6765d15 Change hash_float_test to write out some false failures instead of failing.
[SVN r28393]
2005-04-21 23:41:12 +00:00
Daniel James
8dc87153e9 Split the hash pointer tests into tests for normal pointers and function pointers, as function pointers fail on old versions of Visual C++, and add a note about this to the hash documentaion.
[SVN r28389]
2005-04-21 22:18:38 +00:00
Daniel James
8da0e01046 Update hash documentation:
Rename to Boost.Functional/Hash. Add some extra details to the library header.
Use macros to link functions & classes.
Add a note about a couple of portability issues.


[SVN r28373]
2005-04-21 08:44:14 +00:00
Daniel James
c121440840 Various changes to the hash documentation including:
- Updated for splitting the books example into books.hpp & books.cpp
- Added the array overloads of hash_value, and the new signature for pointers.
- Split up the overloads of hash_value in boost/hash/hash.hpp.


[SVN r28341]
2005-04-20 15:16:29 +00:00
Daniel James
b2a365c644 Change the books hash example to have a separate header.
[SVN r28340]
2005-04-20 15:02:00 +00:00
Daniel James
ed5dd8be7e Add redirect for the hash documentation.
[SVN r28339]
2005-04-20 14:58:43 +00:00
Daniel James
469df369fd Change the NaN hash test to a warning.
[SVN r28318]
2005-04-18 17:16:02 +00:00
Daniel James
b4679091a2 Don't bother testing the hash functions with infinity and NaN on borland. Remove a few pointless lines from hash_value_array_test.
[SVN r28287]
2005-04-17 09:12:01 +00:00
Daniel James
1357e13c45 Add tests against Peter's spec.
[SVN r28281]
2005-04-16 16:56:27 +00:00
Daniel James
86d76f397d Add a test for hash_value called with an array. hash_value tests for other
types will be added to their normal tests.


[SVN r28275]
2005-04-16 10:31:20 +00:00
Daniel James
e9a52eb259 Remove the forced fail in the hash float tests on Borland, since the bug should now be fixed.
[SVN r28187]
2005-04-12 20:25:15 +00:00
Daniel James
a2cec1b71c Add some hash examples.
[SVN r28139]
2005-04-11 22:26:01 +00:00
Daniel James
ca202ee142 Make the float hash tests a tad bit more informative.
[SVN r28137]
2005-04-11 22:14:26 +00:00
Daniel James
2994fdf56c Add the hash documentation.
[SVN r28135]
2005-04-11 22:07:45 +00:00
Daniel James
8bebf347fa Remove the empty array hash function test.
[SVN r28088]
2005-04-10 19:21:38 +00:00
Daniel James
e5a62d1cf4 Drop the empty array test.
[SVN r28087]
2005-04-10 19:19:59 +00:00
Daniel James
02e120c774 Add the unit tests for hashing built in arrays.
[SVN r28079]
2005-04-10 12:38:58 +00:00
Daniel James
bc0f34d32d Use static assert instead of mpl assert in the hash tests, as it's more
portable.


[SVN r28068]
2005-04-09 09:30:27 +00:00
Daniel James
f102d684cf Implement the compile time checks for hash functions as a function instead of a templated class. Hopefully it will work on more compilers.
[SVN r28053]
2005-04-07 22:14:02 +00:00
Daniel James
2000b1aed8 Change tests so they can be used to test implementations of TR1 (maybe, eventually).
[SVN r28052]
2005-04-07 21:57:22 +00:00
Daniel James
37e2c9b8c4 Removes hash_range_test.cpp's dependency on Boost.Range, which isn't currently working on Borland.
[SVN r28050]
2005-04-07 21:07:14 +00:00
Daniel James
3cf2a5f88a Removes uses of BOOST_CHECK_EQUAL from the hash tests as they don't work on Borland.
Also force a failure on the float tests on borland as they are crashing horribly. Hopefully I should be able to fix this and remove this.

Also use pair's constructor in hash_map_test.hpp instead of make_pair so that the correct type is created.


[SVN r28049]
2005-04-07 20:53:20 +00:00
Daniel James
fcbbe94b41 Fix a bug in the float hash test - checking that infinity & -infinity hash to
the same value. The hash function is actually working better on the compilers
that were failing this test.


[SVN r28028]
2005-04-06 22:27:45 +00:00
Daniel James
22aa3748c0 Fix the 'DEPENDS all' line in the hash test Jamfile.
[SVN r27956]
2005-04-04 16:54:22 +00:00
Daniel James
4a62e1a35f Rename test suite to functional/hash
[SVN r27920]
2005-04-02 00:03:17 +00:00
Daniel James
1fbb7f83d2 Stop using Boost.Assign in tests as it currently doesn't work on all the compilers I want to support. A pity, but I was already making very limited use of it because of older compilers.
[SVN r27917]
2005-04-01 22:50:26 +00:00
Daniel James
5274643417 Stop using 'std::denorm_present' as on many compilers it isn't present itself.
[SVN r27916]
2005-04-01 22:49:19 +00:00
Daniel James
8c0b7d567e Fully specify custom's namespace for when the ADL workaround is used.
[SVN r27915]
2005-04-01 22:47:36 +00:00
Daniel James
1d60a30e0c Add the boost::hash unit tests.
[SVN r27903]
2005-04-01 16:58:09 +00:00