mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-15 15:38:17 +08:00
Fix tests
This commit is contained in:
@@ -19,11 +19,14 @@
|
||||
|
||||
namespace toml
|
||||
{
|
||||
inline namespace TOML11_INLINE_VERSION_NAMESPACE
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
std::tm localtime_s(const std::time_t* src);
|
||||
std::tm gmtime_s(const std::time_t* src);
|
||||
} // detail
|
||||
} // TOML11_INLINE_VERSION_NAMESPACE
|
||||
} // toml
|
||||
|
||||
TEST_CASE("testing toml::find with toml type")
|
||||
|
@@ -19,11 +19,14 @@
|
||||
|
||||
namespace toml
|
||||
{
|
||||
inline namespace TOML11_INLINE_VERSION_NAMESPACE
|
||||
{
|
||||
namespace detail
|
||||
{
|
||||
std::tm localtime_s(const std::time_t* src);
|
||||
std::tm gmtime_s(const std::time_t* src);
|
||||
} // detail
|
||||
} // TOML11_INLINE_VERSION_NAMESPACE
|
||||
} // toml
|
||||
|
||||
TEST_CASE("testing toml::get with toml types")
|
||||
|
@@ -76,6 +76,8 @@ struct corge
|
||||
|
||||
namespace toml
|
||||
{
|
||||
inline namespace TOML11_INLINE_VERSION_NAMESPACE
|
||||
{
|
||||
template<>
|
||||
struct from<extlib::foo>
|
||||
{
|
||||
@@ -113,6 +115,7 @@ struct into<extlib::qux>
|
||||
return toml::basic_value<TC>(typename toml::basic_value<TC>::table_type{{"a", f.a}, {"b", f.b}});
|
||||
}
|
||||
};
|
||||
} // TOML11_INLINE_VERSION_NAMESPACE
|
||||
} // toml
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -167,6 +170,8 @@ struct foobar
|
||||
|
||||
namespace toml
|
||||
{
|
||||
inline namespace TOML11_INLINE_VERSION_NAMESPACE
|
||||
{
|
||||
template<>
|
||||
struct from<extlib2::foo>
|
||||
{
|
||||
@@ -209,6 +214,7 @@ struct into<extlib2::qux>
|
||||
};
|
||||
}
|
||||
};
|
||||
} // TOML11_INLINE_VERSION_NAMESPACE
|
||||
} // toml
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
@@ -25,6 +25,8 @@ void test_scan_failure(const toml::detail::scanner_base& s,
|
||||
|
||||
namespace toml
|
||||
{
|
||||
inline namespace TOML11_INLINE_VERSION_NAMESPACE
|
||||
{
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const integer_format_info& fmt)
|
||||
{
|
||||
@@ -102,4 +104,5 @@ std::ostream& operator<<(std::ostream& os, const table_format_info& fmt)
|
||||
return os;
|
||||
}
|
||||
|
||||
} // TOML11_INLINE_VERSION_NAMESPACE
|
||||
} // toml
|
||||
|
@@ -86,6 +86,8 @@ void toml11_test_parse_failure(F fn, std::string in, toml::detail::context<TC> c
|
||||
|
||||
namespace toml
|
||||
{
|
||||
inline namespace TOML11_INLINE_VERSION_NAMESPACE
|
||||
{
|
||||
std::ostream& operator<<(std::ostream& os, const integer_format_info&);
|
||||
std::ostream& operator<<(std::ostream& os, const floating_format_info&);
|
||||
std::ostream& operator<<(std::ostream& os, const string_format_info&);
|
||||
@@ -96,5 +98,6 @@ std::ostream& operator<<(std::ostream& os, const local_time_format_info&);
|
||||
std::ostream& operator<<(std::ostream& os, const array_format_info&);
|
||||
std::ostream& operator<<(std::ostream& os, const table_format_info&);
|
||||
|
||||
} // TOML11_INLINE_VERSION_NAMESPACE
|
||||
} // toml
|
||||
#endif// TOML11_TEST_UTILITY_HPP
|
||||
|
Reference in New Issue
Block a user