Files
anm2ed/tests/roundtrip.cpp
T
shweet 40f6b554b5 Initialize with = instead of braces, and drop const from local autos
Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
2026-11-22 17:27:24 -05:00

14 lines
360 B
C++

#include "common.h"
TEST_CASE("fixtures match goldens")
{
auto fixtures = fixtures_get();
REQUIRE(!fixtures.empty());
for (auto& fixture : fixtures)
{
auto anm2 = model_load(file_load(fixture));
for (auto& [name, text] : variants_get(anm2))
golden_check(GOLDEN_DIR / std::format("{}.{}.xml", fixture.stem().string(), name), text);
}
}