diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-02 13:38:32 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-02 13:38:32 +0100 |
commit | 870d407232fea9ab9f80d729dce76d52414a5476 (patch) | |
tree | 1708a28cd442bcc3c70ce9727f4b3bb0b0db3db0 /editor/tests/raycast-test.cpp | |
parent | 60274b1859df2a4c6a50296619d4d4dbd7e78258 (diff) |
w
Diffstat (limited to 'editor/tests/raycast-test.cpp')
-rw-r--r-- | editor/tests/raycast-test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |