hex coords unit tests wip
Some checks failed
Rust / build (push) Failing after 4s

This commit is contained in:
2026-03-14 20:56:06 -04:00
parent 13a74f7620
commit 227b654e50
9 changed files with 18 additions and 14 deletions

View File

@@ -3,5 +3,9 @@ use super::prelude::*;
#[test]
fn create_coord()
{
let coord = HexCoord::from_grid_pos(3, 3);
let center = HexCoord::from_offset_pos(3, 3);
for dir in 0..6
{
assert_eq!(center.get_neighbor(dir).get_neighbor(dir), center.scale(dir, 2));
}
}