mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-07 03:06:18 +08:00
Beautified the inheritance tests
This commit is contained in:
@@ -16,11 +16,11 @@ void test() {
|
||||
|
||||
const auto name = get<0>(rfl::fields<T>()).name();
|
||||
if (name == "x") {
|
||||
std::cout << "OK" << std::endl;
|
||||
std::cout << "OK" << std::endl << std::endl;
|
||||
} else {
|
||||
std::cout << "FAIL\n"
|
||||
<< "Expected member name 'x', got '" << name << "'" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace test_inheritance
|
||||
} // namespace test_inheritance
|
||||
|
||||
Reference in New Issue
Block a user