mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-13 22:50:19 +02:00
Added a visitor version of unpack API,
The current unpacking APIs are constructed on the visitor mechanism. (Fixed #418) Updated test condition.
This commit is contained in:
@@ -27,11 +27,11 @@ TEST(cases, format)
|
||||
feed_file(pac_compact, "cases_compact.mpac");
|
||||
|
||||
msgpack::object_handle oh;
|
||||
while(pac.next(&oh)) {
|
||||
while(pac.next(oh)) {
|
||||
msgpack::object_handle oh_compact;
|
||||
EXPECT_TRUE( pac_compact.next(&oh_compact) );
|
||||
EXPECT_TRUE( pac_compact.next(oh_compact) );
|
||||
EXPECT_EQ(oh_compact.get(), oh.get());
|
||||
}
|
||||
|
||||
EXPECT_FALSE( pac_compact.next(&oh) );
|
||||
EXPECT_FALSE( pac_compact.next(oh) );
|
||||
}
|
||||
|
Reference in New Issue
Block a user