Files
phos-neo/engine/hex/src/tests.rs
Amatsugu 227b654e50
Some checks failed
Rust / build (push) Failing after 4s
hex coords unit tests wip
2026-03-14 20:56:06 -04:00

12 lines
204 B
Rust

use super::prelude::*;
#[test]
fn create_coord()
{
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));
}
}