diff options
author | Nathan Franke <me@nathan.sh> | 2022-04-28 22:21:26 -0500 |
---|---|---|
committer | Nathan Franke <me@nathan.sh> | 2022-04-28 22:21:26 -0500 |
commit | bdd7b558b6a326458477532fa00517103c9b835b (patch) | |
tree | 3d1b0dcf3fe7d9d67a9ca549682e09dd5c9948e9 /tests | |
parent | cbdc33bcf73090962e60c1cf5ee50a21b29e4bad (diff) |
remove escapes in gdscript test output
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_macros.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/test_macros.h b/tests/test_macros.h index 6e7a84bfb2..9cb9624d52 100644 --- a/tests/test_macros.h +++ b/tests/test_macros.h @@ -63,22 +63,22 @@ // Stringify all `Variant` compatible types for doctest output by default. // https://github.com/onqtam/doctest/blob/master/doc/markdown/stringification.md -#define DOCTEST_STRINGIFY_VARIANT(m_type) \ - template <> \ - struct doctest::StringMaker<m_type> { \ - static doctest::String convert(const m_type &p_val) { \ - const Variant val = p_val; \ - return val.get_construct_string().utf8().get_data(); \ - } \ +#define DOCTEST_STRINGIFY_VARIANT(m_type) \ + template <> \ + struct doctest::StringMaker<m_type> { \ + static doctest::String convert(const m_type &p_val) { \ + const Variant val = p_val; \ + return val.operator ::String().utf8().get_data(); \ + } \ }; -#define DOCTEST_STRINGIFY_VARIANT_POINTER(m_type) \ - template <> \ - struct doctest::StringMaker<m_type> { \ - static doctest::String convert(const m_type *p_val) { \ - const Variant val = p_val; \ - return val.get_construct_string().utf8().get_data(); \ - } \ +#define DOCTEST_STRINGIFY_VARIANT_POINTER(m_type) \ + template <> \ + struct doctest::StringMaker<m_type> { \ + static doctest::String convert(const m_type *p_val) { \ + const Variant val = p_val; \ + return val.operator ::String().utf8().get_data(); \ + } \ }; DOCTEST_STRINGIFY_VARIANT(Variant); |