52 Commits

Author SHA1 Message Date
Shane Grant
59c0a9ba8c fixed copyright in tests 2013-07-14 13:42:47 -07:00
Shane Grant
a959458344 adding portable binary to unit tests 2013-07-12 15:17:37 -07:00
Randolph Voorhies
cd9d8c4b31 Working on coverage 2013-07-10 13:14:02 -07:00
Shane Grant
cc8784660c modified unit tests to not use floats for map keys, complex now uses boost_check_close for double types 2013-07-09 10:24:20 -07:00
Randolph Voorhies
035b01b473 JSON looking good, just need to fix up all unit tests 2013-07-08 18:19:12 -07:00
Randolph Voorhies
f830367d9d Writing arrays now works. Reading is next 2013-07-08 17:14:40 -07:00
Shane Grant
f70f34ae6e added polymorphic unit test 2013-07-08 10:29:41 -07:00
Shane Grant
cded3bea43 using BOOST_CHECK_CLOSE for long double comparisons
some documentation updates to both xml and util
2013-07-08 10:13:42 -07:00
Shane Grant
0912411844 Documentation updates and priority_queue now tested for XML 2013-07-07 18:23:21 -07:00
Shane Grant
8fcb6389e8 Made unit tests work for XML, needed to put scope around output archives since they flush on destruction.
Added some documentation to XML output archive describing how it works.

Added attribute size="dynamic" to types that specify a size tag for XML, making it easier for a human to figure out what
they can add or remove data from.

Documentation updates on a few other things.
2013-07-07 18:01:17 -07:00
Shane Grant
39978c7377 added XML to all tests in unittests
Some things are failing, will need to look at this later.

string test is commented out for XML since it doesn't work with wchar yet
priority_queue test is commented out for XML since it doesn't work with empty structs automatically
2013-07-06 16:24:36 -07:00
Shane Grant
a17b067c7e adding bool to pod tests 2013-07-06 16:01:09 -07:00
Shane Grant
1f64755397 added some comments to xml for loadvalue, everything running fine through valgrind now 2013-07-06 15:58:55 -07:00
Shane Grant
283db1b09d fixes a memory issue with rapidxml, we need to make sure that input streams are null terminated (C++ api yeah right!) 2013-07-06 15:52:39 -07:00
Shane Grant
c4ce4260ed testing XML for pod types, getting some strange parsing error that needs to be sorted out. doesn't seem to happen 100%
of the time
2013-07-06 15:28:10 -07:00
Shane Grant
5445bed830 testing for specialized types
reveals that we need an error message if someone specializes but doesn't actually have the save/load functions required
2013-07-05 16:20:22 -07:00
Shane Grant
09fcbc5134 fixed multimap test 2013-07-05 16:07:54 -07:00
Randolph Voorhies
2dcf50a57f Added make_nvp<Archive> to elide unnecessary names 2013-07-03 18:57:42 -07:00
Shane Grant
002b1ceeb1 adding size_tag wrappers, XML output looking good 2013-07-03 11:17:47 -07:00
Shane Grant
7af76f4c97 Added a map of vectors to the unit test 2013-06-20 17:24:03 -07:00
Shane Grant
d5579d696d modifying tests for new file layout 2013-06-20 11:14:33 -07:00
Randolph Voorhies
27ef76de78 Added case for nullptr smart pointers 2013-06-19 19:04:21 -07:00
Randolph Voorhies
8849251bb1 More chrono unit tests 2013-06-19 18:37:06 -07:00
Randolph Voorhies
24ad0341ad Added binary enum serialization 2013-06-19 17:56:30 -07:00
Shane Grant
d5afb78fcc Adding chrono. Some docs/cleanup. NVP now works with R-values and l-values 2013-06-19 14:19:48 -07:00
Randolph Voorhies
a09841ad4d Nicer function call operator on Archives (not &) 2013-06-18 18:10:12 -07:00
Shane Grant
6152551dd1 added license 2013-06-17 12:01:39 -07:00
Shane Grant
e2d07a1670 Added unit tests for complex and bitset
Made all template functions for the various types inline
2013-06-16 11:31:59 -07:00
Shane Grant
0c56175a1c Adding bitset and complex, both untested
This makes us "feature complete (tm)" as far as things that look worth serializing in the standard library

just need the unit tests for these then we can profile size and speed vs boost
2013-06-15 23:26:47 -07:00
Shane Grant
adcc2532db Unit tests for std::tuple, fixed tuple serialization
Boost check for tuple serialization check could be made better, pair probably the same as well.  boost doesn't like
pairs or tuples in BOOST_CHECK_EQUAL
2013-06-15 22:54:03 -07:00
Shane Grant
d4f7c4b1e1 Adding unit tests for std::pair 2013-06-15 22:21:25 -07:00
Randolph Voorhies
7c3c3781ce unit tests for priority_queue, fixed bug in priority_queue 2013-06-14 16:15:43 -07:00
Randolph Voorhies
6fc81554dc Unit tests for unordered_multiset 2013-06-14 16:12:06 -07:00
Randolph Voorhies
ce983a1bb4 Unit tests for unordered_set 2013-06-14 16:03:13 -07:00
Randolph Voorhies
8a775ecdcb Unit tests for unordered_multimap 2013-06-14 15:49:50 -07:00
Randolph Voorhies
68ada7b613 Unit tests for multimap 2013-06-14 15:39:07 -07:00
Randolph Voorhies
e2e6002f67 Unit tests for unordered_map 2013-06-14 15:35:15 -07:00
Randolph Voorhies
9ccd18fad9 Unit tests for string 2013-06-14 15:28:46 -07:00
Randolph Voorhies
84acf887bb Unit tests for stack 2013-06-14 15:04:04 -07:00
Randolph Voorhies
4abde8093a Unit tests for set 2013-06-14 15:01:06 -07:00
Randolph Voorhies
3691ec192a Unit tests for queue 2013-06-14 14:54:11 -07:00
Randolph Voorhies
0dd44928c3 Added map unit tests.
Something funky is going on with the stream operator here, but whatever.
2013-06-14 14:45:11 -07:00
Randolph Voorhies
70225c8e31 Merge branch 'master' of git.r-c-v.com:rand/cereal
Conflicts:
	binary_archive/array.hpp
	binary_archive/forward_list.hpp
2013-06-14 13:46:20 -07:00
Randolph Voorhies
73fda0f5d9 Starting map unit tests 2013-06-14 13:45:10 -07:00
Shane Grant
e9d277025f const_cast for save(), seeking for binary_oarchive
Using const cast to get rid of having two versions of save (changed vector and array so far)

Initial implementation of seeking to allow saving and restoring position within a binary archive
2013-06-14 12:17:21 -07:00
Randolph Voorhies
d060da918c Added list unit tests 2013-06-13 18:45:33 -07:00
Randolph Voorhies
6821955323 Added forward_list unit tests
Also, forward_list has no .size() method. For now, we're using a linear
traversal of the container with std::distance. We may want to do
something more efficient later?
2013-06-13 18:40:57 -07:00
Randolph Voorhies
11019ef8de Adding deque unit tests 2013-06-13 18:31:29 -07:00
Randolph Voorhies
010252c1d7 Fixed serialization error in vector, added tests 2013-06-13 18:26:29 -07:00
Randolph Voorhies
480cfcc4b6 Added array unit tests 2013-06-13 17:54:42 -07:00