-
Notifications
You must be signed in to change notification settings - Fork 16
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
assertNull and assertNotNull assertions #116
Comments
Does this help?
I don't remember why 'assertNull()' and 'assertNotNull()' were not included. If I recall, early versions of AUnit had some problems with the incomprehensible C++ casting rules, overloaded function rules, and template type matching rules. Also, GoogleTest does not have assertNull() assertNotNull() (https://google.github.io/googletest/reference/assertions.html), it wants you to use I probably would not be opposed to adding an |
It occurs to me that one reason to create new |
Just for future reference (mostly to myself probably), I think the reason I couldn't add those asserts is due to the ambiguous overloaded functions mentioned in the paragraph right after the one I quoted:
So the So, this is more than a trivial amount of work, but hard to say whether it's a small amount or large amount of work. |
hi @bxparks , thank you for the response.
however,
this is the test log:
please advise. thanks in advance,
|
I cannot offer any help if the only thing you give me is "it times out". You need to provide: sample code, the environment, the compiler, the commands used... Just any little thing that explains how to reproduce your problem. |
hi @bxparks , thank you for the response. as requested: my test:
MyObject.cpp
environment: Linux compiler: /usr/bin/g++ Makefile:
commands used:
thanks in advance,
|
Replace |
hi there,
Is your feature request related to a problem? Please describe.
this is neither a bug nor a problem, but rather a feature request.
Describe the solution you'd like
will it be possible to add explicit
assertNull
andassertNotNull
assertions?Describe alternatives you've considered
my current workaround is to use
assertTrue
andassertFalse
.Additional context
n/a
please advise.
thanks in advance,
rey malahay
The text was updated successfully, but these errors were encountered: