Commit Graph

62 Commits

Author SHA1 Message Date
Shane Grant
83e06bdc7f Fix and close #19
All containers that used insert during loads (map, unordered_map, set, unordered_set)
now use emplace or emplace_hint and move their loaded values into position.
2013-09-12 10:23:43 -07:00
Shane Grant
3fccebb030 out of order XML working properly:
Errors in unittests turned out to be errors in the way the tests were written,
not in the actual XML archive.

Additional errors were due to improper loads in vector<bool>, which is now
fixed.
2013-09-06 17:14:44 -07:00
Shane Grant
db0f1cf47f Changed the way vector<bool> works to avoid issues with XML.
XML out of order seems to be working fine but the unit tests are running into a crash on the out of order test, which
doesn't show up in the sandbox version of the same thing.  Need to debug this and out of order should be good to go
for XML.
2013-09-06 16:33:23 -07:00
Shane Grant
92559772f1 added unit test for unordered loads and fixed an error with loading/saving vectors of bools.
unit test is currently crashing on the xml load test
2013-09-01 16:11:36 -07:00
Shane Grant
c6b485ea69 done 2013-08-26 22:20:27 -07:00
Shane
de137bbc70 unit tests passing under vs2013 preview (32 bit release)
Still todo:
 * Build under debug/release for both 32 and 64 bit
 * make a project for performance
 * clean up code specific for vs and take a careful look at the changes that json.hpp needed
2013-07-19 23:25:04 -07:00
Shane
2d543a45e2 changed to using automatic linking for boost, now linking against dlls 2013-07-19 22:34:43 -07:00
Shane
da03627ff1 Removed some (but not all) of the line endings I accidentally added while in VS.
Fixed a bunch of issues related to compiling unittests on VS.

Having a problem linking against boost unit tests, so can't run the tests yet.
2013-07-18 21:42:37 -07:00
Shane
66c9bc3647 can't use initializer lists in unittests for vs, need to take them out 2013-07-17 22:49:17 -07:00
Shane
2c522cb0db cleaning up projects 2013-07-15 21:49:05 -07:00
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