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

CHECK_EQ with enum values #276

Closed
killkrt opened this issue Aug 21, 2019 · 3 comments
Closed

CHECK_EQ with enum values #276

killkrt opened this issue Aug 21, 2019 · 3 comments

Comments

@killkrt
Copy link

killkrt commented Aug 21, 2019

Description

I don't know if it could be a bug or it is more a feature request.
Anyway if you compare two enum values using CHECK_EQ and the check fails, the error message shows question mark instead of values.

I would expect that the enum values are casted to integer by default. Or maybe to have a macro (e.g.: CHECK_EQ_ENUM) that automatically cast to int.

Extra info

  • doctest version: 2.3.3
  • Operating System: Arch Linux x86_64 5.2.9
  • Compiler+version: clang 8.0.1
@onqtam
Copy link
Member

onqtam commented Aug 21, 2019

This issue seems to be a duplicate of the following: #121 I'm not sure when I'll get to it though...

@Trass3r
Copy link

Trass3r commented Jul 28, 2020

Yes looks like a duplicate.

@onqtam
Copy link
Member

onqtam commented Nov 7, 2020

closing this one since #121 has been implemented & closed

@onqtam onqtam closed this as completed Nov 7, 2020
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

3 participants