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:
Takatoshi Kondo
2016-05-13 18:51:53 +09:00
parent 068041f05e
commit e6f82cf2bb
12 changed files with 82 additions and 33 deletions

View File

@@ -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;