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

assert custom message max string length #332

Closed
makcedward opened this issue Apr 19, 2024 · 2 comments · Fixed by #333
Closed

assert custom message max string length #332

makcedward opened this issue Apr 19, 2024 · 2 comments · Fixed by #333
Assignees
Labels
bug Something isn't working k::UI/UX UI (user interface) and UX (user experience) changes
Milestone

Comments

@makcedward
Copy link

makcedward commented Apr 19, 2024

Recently, I have been trying to debug a failure case with a custom message. I noticed that it cannot print out all the messages if the string value is more than around 1000 (or 1024) characters.

I tested assert! without cucumber, and it was able to print out more than 1000 (or 1024) characters. I am curious about whether there are some limitations or additional configurations that could be affecting the printing of longer strings.

let msg = "abcdefghij";
assert!(false, "{}", msg.repeat(110));
@ilslv
Copy link
Member

ilslv commented Apr 21, 2024

Thanks for reporting this! I've managed to pin down the issue and fix it #333

@tyranron tyranron added bug Something isn't working k::UI/UX UI (user interface) and UX (user experience) changes labels Apr 22, 2024
@tyranron tyranron added this to the 0.21.0 milestone Apr 22, 2024
@tyranron tyranron linked a pull request Apr 22, 2024 that will close this issue
@tyranron
Copy link
Member

@makcedward fixed in 0.21.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working k::UI/UX UI (user interface) and UX (user experience) changes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants