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

better output like libassert #594

Open
Theramar opened this issue Nov 17, 2023 · 0 comments
Open

better output like libassert #594

Theramar opened this issue Nov 17, 2023 · 0 comments

Comments

@Theramar
Copy link

Expected Behavior

add an optional (for performance reasons) libassert-like output:

image

  • colors (syntax highlighting)

  • expression diagnostics:

    values involved in assert expressions are displayed. Redundant diagnostics like 7 => 7 are avoided.

    assert(vec.size() > 7);

    image

  • custom messages should be displayed like extra diagnostics

  • stack trace can be ignored.

Actual Behavior

Running "sum"...
  sum.cpp:11:FAILED [(3 > 0 and 41 == 42)]
FAILED

here "false" gives no hint:

main.cpp:4:FAILED [false]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant