Skip to content

[Feature]: Include non-printable control characters such as \x01 in the console "Expected:" and "Received:" outputs. #15506

Closed
@fixparser

Description

@fixparser

🚀 Feature Proposal

Include all control characters in the console, properly escaped so the <SOH> character is printed as \x01. It's currently stripped from the printed string.

Motivation

A lot of our tests uses these special characters and it creates extra work/steps due to the removal of these characters.

Example

This:

Expected: "8=FIXT.1.19=6835=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=301137=910=0"
Received: "8=FIXT.1.135=A34=149=ISLD52=<TIME>56=TW141=N98=0108=30"

Should print as this:

Expected: "8=FIXT.1.1\x019=68\x0135=A\x0134=1\x0149=ISLD\x0152=00000000-00:00:00.000\x0156=TW\x0198=0\x01108=30\x011137=9\x0110=0\x01"
Received: "8=FIXT.1.1\x0135=A\x0134=1\x0149=ISLD\x0152=<TIME>\x0156=TW\x01141=N\x0198=0\x01108=30"

Pitch

Hopefully a simple change to include these characters, would be super helpful for our use case. Cheers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions