Skip to content

Test failures on s390x #609

@toddy15

Description

@toddy15

Description

Hi,

I've just updated the charmbracelet/x library for Debian, and there are five tests failing on the s390x architecture, see the output below:

--- FAIL: TestTerminal (0.03s)
    --- FAIL: TestTerminal/DCH_Split_Wide_Character (0.00s)
        emulator_test.go:1802: line 1 doesn't match:
            want: "A 123     "
            got:  "A13       "
    --- FAIL: TestTerminal/ECH_Multi-cell_Character (0.00s)
        emulator_test.go:1802: line 1 doesn't match:
            want: "X BC    "
            got:  "XC      "
    --- FAIL: TestTerminal/EL_Erase_Right_Multi-cell_Character (0.00s)
        emulator_test.go:1802: line 1 doesn't match:
            want: "AB      "
            got:  "ABD     "
    --- FAIL: TestTerminal/EL_Erase_Left_Multi-cell_Character (0.00s)
        emulator_test.go:1802: line 1 doesn't match:
            want: "    DE  "
            got:  "   E    "
    --- FAIL: TestTerminal/ED_Erase_Below_with_Multi-Cell_Character (0.00s)
        emulator_test.go:1802: line 1 doesn't match:
            want: "AB橋C   "
            got:  "ABC     "

It looks like all failures are related to wide unicode characters. I suspect it might have to do with the big endian architecture of s390x. However, I didn't have time to further dive into this. Maybe you already have an idea what the cause of those failures might be. If you need to test your fix on s390x, please reach out to me, I can run the tests again on that architecture.

Regards,
Tobias

Version

No response

Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions