summaryrefslogtreecommitdiffhomepage
path: root/test/raycast.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-04 17:29:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-04 17:44:55 +0100
commit8b9ca5cc3a6d6505183d48216a7c22572592663f (patch)
treeea1177bdd941d854563975c27a7adbe7796ddbcb /test/raycast.cpp
parente56497a9a9e66fc912aadc79e979f51a7f6fe81c (diff)
wip
Diffstat (limited to 'test/raycast.cpp')
-rw-r--r--test/raycast.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/raycast.cpp b/test/raycast.cpp
index 672dc407..1793f5b6 100644
--- a/test/raycast.cpp
+++ b/test/raycast.cpp
@@ -1,8 +1,23 @@
#include "app.hpp"
#include "src/raycast.hpp"
+#include "src/world.hpp"
namespace floormat {
+namespace {
+
+#warning TODO!
+
+void test1()
+{
+ // try reproducing the evil bug in src/raycast.cpp:285:
+ // c = w.at({last_ch + Vector2i{i - 1, j - 1}});
+ // was incorrectly:
+ // c = w.at({last_ch - Vector2i{i - 1, j - 1}});
+}
+
+} // namespace
+
void test_app::test_raycast()
{