Fix HexTile centerline cell selection

Evaluate the third cube coordinate symmetrically to retain the intended centerline tie. Keep the existing pixel oracle and tolerance.

Scope the Mem fixture mutex unwrap allowance so the original strict CI can validate this base.

Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
sanyamsingh001
2026-10-18 05:52:04 +00:00
co-authored by Codex
parent 2d805d1b69
commit 2de015fe9f
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -11,6 +11,8 @@ use crate::run_code;
#[derive(Default)]
struct Mem(Mutex<HashMap<String, Vec<u8>>>);
// A poisoned fixture mutex should fail the test.
#[allow(clippy::unwrap_used)]
impl Services for Mem {
fn read_file(&self, path: &str) -> std::io::Result<Vec<u8>> {
self.0.lock().unwrap().get(path).cloned().ok_or_else(|| std::io::Error::new(std::io::ErrorKind::NotFound, path.to_string()))