Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fixparser opened this issue Feb 14, 2025 · 0 comments

Comments

@fixparser
Copy link

fixparser commented Feb 14, 2025

🚀 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant