mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-13 22:50:19 +02:00
Fixed #463.
Added lacked include files. Added a test. Added MSVC build settings on appveyor. Added old MSVC workaround. Fixed a variable definition point to meet ANSI-C.
This commit is contained in:
@@ -143,6 +143,8 @@ TEST(MSGPACK, simple_buffer_int64)
|
||||
GEN_TEST(int64_t);
|
||||
}
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >=1800
|
||||
|
||||
TEST(MSGPACK, simple_buffer_float)
|
||||
{
|
||||
vector<float> v;
|
||||
@@ -185,6 +187,8 @@ TEST(MSGPACK, simple_buffer_float)
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >=1800
|
||||
|
||||
namespace {
|
||||
template<typename F, typename I>
|
||||
struct TypePair {
|
||||
@@ -232,6 +236,8 @@ INSTANTIATE_TYPED_TEST_CASE_P(IntegerToFloatingPointTestInstance,
|
||||
IntegerToFloatingPointTest,
|
||||
IntegerToFloatingPointTestTypes);
|
||||
|
||||
#if !defined(_MSC_VER) || _MSC_VER >=1800
|
||||
|
||||
TEST(MSGPACK, simple_buffer_double)
|
||||
{
|
||||
vector<double> v;
|
||||
@@ -278,6 +284,8 @@ TEST(MSGPACK, simple_buffer_double)
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !defined(_MSC_VER) || _MSC_VER >=1800
|
||||
|
||||
TEST(MSGPACK, simple_buffer_nil)
|
||||
{
|
||||
msgpack::sbuffer sbuf;
|
||||
|
Reference in New Issue
Block a user