Updated the version to 3.0.0.

See https://github.com/msgpack/msgpack-c/pull/639#issuecomment-353786498
So I updated the version to 3.0.0.
In the version 2.x, it keeps the original behavior.
This commit is contained in:
Takatoshi Kondo
2018-04-06 08:15:09 +09:00
parent 427a6e7313
commit 347658cdc1
110 changed files with 3862 additions and 123 deletions

View File

@@ -370,7 +370,11 @@ TEST(unpack, insufficient_bytes_ref)
}
catch (msgpack::insufficient_bytes const&) {
EXPECT_TRUE(true);
#if MSGPACK_DEFAULT_API_VERSION < 3
EXPECT_EQ(off, 0u);
#else // MSGPACK_DEFAULT_API_VERSION < 3
EXPECT_EQ(1u, off);
#endif // MSGPACK_DEFAULT_API_VERSION < 3
}
}
@@ -387,7 +391,11 @@ TEST(unpack, insufficient_bytes_object_handle)
}
catch (msgpack::insufficient_bytes const&) {
EXPECT_TRUE(true);
#if MSGPACK_DEFAULT_API_VERSION < 3
EXPECT_EQ(off, 0u);
#else // MSGPACK_DEFAULT_API_VERSION < 3
EXPECT_EQ(1u, off);
#endif // MSGPACK_DEFAULT_API_VERSION < 3
}
}
@@ -405,7 +413,11 @@ TEST(unpack, insufficient_bytes_zone)
}
catch (msgpack::insufficient_bytes const&) {
EXPECT_TRUE(true);
#if MSGPACK_DEFAULT_API_VERSION < 3
EXPECT_EQ(off, 0u);
#else // MSGPACK_DEFAULT_API_VERSION < 3
EXPECT_EQ(1u, off);
#endif // MSGPACK_DEFAULT_API_VERSION < 3
}
}