summaryrefslogtreecommitdiffhomepage
path: root/editor/tests
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-02 13:38:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-02 13:38:32 +0100
commit870d407232fea9ab9f80d729dce76d52414a5476 (patch)
tree1708a28cd442bcc3c70ce9727f4b3bb0b0db3db0 /editor/tests
parent60274b1859df2a4c6a50296619d4d4dbd7e78258 (diff)
w
Diffstat (limited to 'editor/tests')
-rw-r--r--editor/tests/path-test.cpp2
-rw-r--r--editor/tests/raycast-test.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/editor/tests/path-test.cpp b/editor/tests/path-test.cpp
index 1d69ac07..703a0f3a 100644
--- a/editor/tests/path-test.cpp
+++ b/editor/tests/path-test.cpp
@@ -175,7 +175,7 @@ void path_test::draw_ui(app& a, float width)
constexpr auto print_coord = [](auto&& buf, Vector3i c, Vector2i l, Vector2i p)
{
- std::snprintf(buf, std::size(buf), "(%dx%d) <%dx%d> {%dx%d px}", c.x(), c.y(), l.x(), l.y(), p.x(), p.y());
+ std::snprintf(buf, std::size(buf), "(ch %dx%d) <%dx%d> {%dx%d px}", c.x(), c.y(), l.x(), l.y(), p.x(), p.y());
};
constexpr auto do_column = [](StringView name)
diff --git a/editor/tests/raycast-test.cpp b/editor/tests/raycast-test.cpp
index 441df135..b9604cbd 100644
--- a/editor/tests/raycast-test.cpp
+++ b/editor/tests/raycast-test.cpp
@@ -156,12 +156,12 @@ struct raycast_test : base_test
constexpr auto print_coord = [](auto&& buf, Vector3i c, Vector2i l, Vector2i p)
{
- std::snprintf(buf, std::size(buf), "(%dx%d) <%dx%d> {%dx%d px}", c.x(), c.y(), l.x(), l.y(), p.x(), p.y());
+ std::snprintf(buf, std::size(buf), "(ch %dx%d) <%dx%d> {%dx%d px}", c.x(), c.y(), l.x(), l.y(), p.x(), p.y());
};
constexpr auto print_vec2 = [](auto&& buf, Vector2d vec)
{
- std::snprintf(buf, std::size(buf), "(%.2fx%.2f)", vec.x(), vec.y());
+ std::snprintf(buf, std::size(buf), "(%.2f x %.2f)", vec.x(), vec.y());
};
constexpr auto do_column = [](StringView name)
@@ -205,7 +205,7 @@ struct raycast_test : base_test
text(buf);
do_column("step");
- std::snprintf(buf, std::size(buf), "%.3f", result.diag.step);
+ std::snprintf(buf, std::size(buf), "%f", result.diag.step);
text(buf);
}
}