Merge pull request #60610 from nathanfranke/remove-escapes-in-gdscript-tests
remove escapes in gdscript test output
This commit is contained in:
commit
55198f5c28
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user