Commit Graph

99 Commits

Author SHA1 Message Date
beder
00648c5db8 Added test for BOOST_FOREACH on a map 2012-05-08 12:30:02 -05:00
beder
16ac10673a Tweaked node iterator tests 2012-05-08 12:27:04 -05:00
beder
b8452ed045 Added node iterator tests 2012-05-08 12:23:37 -05:00
beder
bb3fe86209 Added proper typedefs for BOOST_FOREACH to work 2012-05-08 12:20:28 -05:00
beder
0711f65b67 Renamed append -> push_back (to play nice with STL algorithms 2012-01-21 12:11:40 -06:00
beder
a6b70bb2ac Added convert<> specialization for Binary 2012-01-21 01:54:54 -06:00
beder
f84f3be017 Began new-api branch, and removed all traces of the old api from this branch 2012-01-20 23:36:08 -06:00
beder
4e7aac7273 Fixed hex and oct emitting (it now adds the 0x or 0 prefix) 2012-01-13 00:00:11 -06:00
beder
9dcc7ead32 Added test for new API octal/hex conversion 2012-01-12 23:55:15 -06:00
beder
454afa64dd Fixed double -> int conversion (now throws) for old API 2012-01-12 23:52:51 -06:00
beder
9bb3cf4915 Updated new API conversion to handle nan/inf and to throw when the conversion didn't use the entire string (e.g., parsing 1.2 as an integer) 2012-01-12 23:49:05 -06:00
beder
f468101ebb Added default parameters for the as<> function (new API) 2012-01-12 01:03:31 -06:00
beder
080121ec62 Fixed bug in parsing escaped newline (it was being clipped like a regular newline) 2012-01-11 17:55:27 -06:00
beder
09882be09c Removed some extra stuff in the comment/newline in flow map tests, which really should be illegal (since implicit keys can't span multiple lines). It would be impossible to fix if we keep the immediate-output we're doing now - the only way to prevent it would be to hold on to a key's text until we got to the value token to make sure it could be an implicit key 2012-01-11 17:06:27 -06:00
beder
32de51d596 Added parsing emitter tests with the new API, two fail 2012-01-11 16:41:13 -06:00
beder
fa39efd6ac Disallowed a plain scalar with just a dash 2012-01-11 16:39:24 -06:00
beder
64b2491a79 Added float/double precision setters 2012-01-11 14:34:04 -06:00
beder
12ed4698bf Fixed assignment with an empty node (new API) - a segfault that only showed up in debuggable 2011-12-20 22:19:54 -06:00
beder
0d12b0ac1f Added single character emitting 2011-11-14 16:23:14 -06:00
beder
c14e27108e Added missing includes (iostream) for the tests 2011-11-13 16:12:39 -06:00
beder
5f942b9f6b Added (unspecified-type) bool conversions for Node (new API) 2011-11-13 16:05:42 -06:00
beder
06cba07048 Fixed emitter bug with colon at the end of a scalar in a flow collection 2011-10-31 19:16:17 -05:00
beder
2b8106c822 Added parser test for single char input (that fails) 2011-10-20 13:53:27 -05:00
beder
4832ab81cc Updated old api spectests with common spec examples 2011-09-17 23:57:40 -05:00
beder
856c189890 Set the default build to the old API, and removed the duplicate spec test implementation for the old api 2011-09-17 23:46:48 -05:00
beder
c8d4f3237b Added bool conversions 2011-09-14 01:48:36 -05:00
beder
02cf1d54a3 Finished adding old spec tests 2011-09-13 14:31:00 -05:00
beder
fbf4233e4d Switched YAML::Parse to YAML::Load, and added LoadAll 2011-09-13 14:24:47 -05:00
beder
c7ad5cd246 Added 7.x and 8.x tests with tags - all that's left is multiple docs in stream 2011-09-13 14:20:32 -05:00
beder
aa35d5dbe6 Added 6.x tests with tags 2011-09-13 14:18:00 -05:00
beder
03ba10e880 Added IsNull, IsScalar, IsSequence, IsMap functions, so you don't have to query Type() 2011-09-13 14:10:27 -05:00
beder
b74bb2a32a Copied 2.x tests with tags 2011-09-13 14:07:22 -05:00
beder
4e5d49910b Added a convert<> specialization for YAML::_Null (so you can say node[YAML::Null]) 2011-09-13 02:03:56 -05:00
beder
413e9b2674 Copied over the 8.x tests that don't have tags 2011-09-13 01:56:44 -05:00
beder
3760a240c9 Copied over the 7.x tests that don't have tags 2011-09-13 01:46:42 -05:00
beder
3caab014d0 Copied over the 6.x tests that don't have tags 2011-09-13 01:36:27 -05:00
beder
f70f9ee6fc Copied over the 5.x tests 2011-09-13 01:28:32 -05:00
beder
47412f18e6 Copied over all the 2.x tests that are (a) single doc and (b) don't have tags 2011-09-13 01:23:30 -05:00
beder
6981893b28 Factored out spec examples, and sketched skeleton for spec tests for new API 2011-09-12 22:55:37 -05:00
beder
ee64f2b3af Added temp variable tests 2011-09-12 22:09:16 -05:00
beder
61d2aa9d5a Added failing self-reference tests 2011-09-12 12:48:51 -05:00
beder
8abb035eaf Added two alias tests 2011-09-12 12:42:23 -05:00
beder
f0ad35ccaf Implemented std::map decode (and fixed bug in the Node iterator - the reference_type should be just a plain value, since it's created on-the-fly) 2011-09-12 00:29:39 -05:00
beder
6f34e8972b Added reading/writing std::list 2011-09-11 23:18:19 -05:00
beder
3c6530f4f5 Added reading/writing std::vector 2011-09-11 23:14:52 -05:00
beder
1b8535c52e Implemented operator[] specialization, but only const (should the sequence be mutable?) 2011-09-11 21:51:04 -05:00
beder
eb7734bc80 Added failing map iterator count test 2011-09-11 17:36:08 -05:00
beder
01f3c7342c Implemented the map size computation 2011-09-11 17:16:26 -05:00
beder
8efde57f3f Added computing and caching the sequence size 2011-09-11 16:21:36 -05:00
beder
da0767726d Added some small map tests 2011-09-11 16:02:31 -05:00