From f84c794668035f703ad116c3dd607e6ea23b7760 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 22 Jun 2022 20:16:34 -0600 Subject: [PATCH] testqbsp: make "origin" test accept legacy ericwtools output --- qbsp/test_qbsp.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qbsp/test_qbsp.cc b/qbsp/test_qbsp.cc index 6a9102dd..1d60cd98 100644 --- a/qbsp/test_qbsp.cc +++ b/qbsp/test_qbsp.cc @@ -924,7 +924,8 @@ TEST_CASE("origin", "[testmaps_q1]") [](const entdict_t &dict) -> bool { return dict.get("classname") == "rotate_object"; }); REQUIRE(it != ents.end()); - REQUIRE("216 -216 340" == it->get("origin")); + CHECK_THAT(it->get("origin"), Catch::Equals("216 -216 340") + || Catch::Equals("216.00 -216.00 340.00")); } TEST_CASE("simple", "[testmaps_q1]")