Build: qualify wasm test suite with portable libc++ fallbacks (refs #38)
This commit is contained in:
1 parent
1ba60d5d6a
commit
f0820b778f
7 files changed
+163
-12
No files matched your search
@@ -16,9 +16,13 @@ namespace
|
||||
// @tag reflection
|
||||
Void::Testing::Test debug_dump_reflects_struct_elements()
|
||||
{
|
||||
#if !VOID_HAS_CXX26_REFLECTION
|
||||
Void::Testing::skip("C++26 reflection is not available");
|
||||
#else
|
||||
std::vector<P> v{{1, 2}, {3, 4}};
|
||||
Void::Testing::expect_eq(Void::Containers::debug_dump(v),
|
||||
std::string{"[P{x: 1, y: 2}, P{x: 3, y: 4}]"});
|
||||
#endif
|
||||
}
|
||||
|
||||
// @tag reflection
|
||||
|
||||
@@ -27,10 +27,14 @@ Void::Testing::Test struct_eq_passes_when_equal()
|
||||
// includes the type name and field values.
|
||||
Void::Testing::Test repr_renders_struct_via_reflection()
|
||||
{
|
||||
#if !VOID_HAS_CXX26_REFLECTION
|
||||
Void::Testing::skip("C++26 reflection is not available");
|
||||
#else
|
||||
const auto out = Void::Testing::Detail::repr(Point{3, 4});
|
||||
Void::Testing::expect(out.find("Point") != std::string::npos);
|
||||
Void::Testing::expect(out.find("x: 3") != std::string::npos);
|
||||
Void::Testing::expect(out.find("y: 4") != std::string::npos);
|
||||
#endif
|
||||
}
|
||||
|
||||
// repr for primitives still works.
|
||||
|
||||
Reference in new issue
Block a user