From aa2edab739e3daac42cd5dbb44d10234ad880626 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 2 Jan 2022 19:02:38 +0100 Subject: Separated unit tests and performance tests --- src/test-helper.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/test-helper.h (limited to 'src/test-helper.h') diff --git a/src/test-helper.h b/src/test-helper.h new file mode 100644 index 0000000..c3e2900 --- /dev/null +++ b/src/test-helper.h @@ -0,0 +1,39 @@ +#pragma once + +#include + +#include + +// output operators must be in same namespace as the type itself +namespace std { + +#ifdef __cpp_char8_t + std::ostream& operator<<(std::ostream& os, std::basic_string const& s); +#endif + + std::ostream& operator<<(std::ostream& os, std::basic_string const& s); + std::ostream& operator<<(std::ostream& os, std::basic_string const& s); + +} // namespace std + +template +std::basic_string std_convert(const std::basic_string& s); + +template<> +std::basic_string std_convert(const std::basic_string& s); +template<> +std::basic_string std_convert(const std::basic_string& s); +template<> +std::basic_string std_convert(const std::basic_string& s); +template<> +std::basic_string std_convert(const std::basic_string& s); +template<> +std::basic_string std_convert(const std::basic_string& s); +template<> +std::basic_string std_convert(const std::basic_string& s); +template<> +std::basic_string std_convert(const std::basic_string& s); +template<> +std::basic_string std_convert(const std::basic_string& s); +template<> +std::basic_string std_convert(const std::basic_string& s); -- cgit v1.2.3