Skip to content

Misleading Expected preview in 7_color_inversion failure output #262

@vaibhav-patel

Description

@vaibhav-patel

Hi team, I think the failure renderer for easy/7_color_inversion is showing an incorrect/misleading Expected preview.

For a failed test (width=64, height=64), the output showed:

  • Expected: [72, 248, 144, 179, 88, ..., 254, 61, 26, 168, 53]
  • Got: [72, 248, 144, 179, 88, ..., 254, 194, 229, 87, 53]

But for this challenge, RGB should be inverted and alpha unchanged:

  • 194 = 255 - 61
  • 229 = 255 - 26
  • 87 = 255 - 168
  • 53 (alpha) unchanged

So the Got tail appears to follow the spec, while the Expected tail appears non-inverted (like raw input), which is confusing.

Could you check whether the mismatch formatter is:

  1. printing the wrong buffer under Expected, or
  2. mixing/truncating slices incorrectly?

Thanks!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions