Skip to content

String whitespace comparison #42

@MartinDelille

Description

@MartinDelille

When comparing two string with whitespace, tab or carriage return, it is sometime difficult to understand what are the differences:

 (*) import summary:
file://path/to/spec.cpp:1035: Expected: equal to Summary

Actual: Summary

It would be nice to have a better whitespace display, like for example adding quote to expected and actual string.

Another usefull feature would be to have expected and actual string aligned.

See an output example below:

 (*) import summary:
file://path/to/spec.cpp:1035:
Expected equal to: "Summary
"
           Actual: "Summary
    "

This example show clearly that the actual string has 4 additional spaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions