diff --git a/tests/test_ps_sweep.py b/tests/test_ps_sweep.py index 1eb1efb27..40721b09b 100644 --- a/tests/test_ps_sweep.py +++ b/tests/test_ps_sweep.py @@ -326,6 +326,40 @@ class CompareCommand(unittest.TestCase): self.assertEqual(ps_sweep.depth_measurements(0, rec, rec), {"depth_class": "incompatible"}) self.assertEqual(ps_sweep.depth_measurements(0, {"code": 0}, rec), {"depth_class": "missing"}) + def test_exact_keeps_color_mismatch_with_bad_depth(self): + with tempfile.TemporaryDirectory() as tmp: + out = Path(tmp) + pixels = ps_sweep.W * ps_sweep.H + floats = pixels * 4 + color_a = struct.pack("