-
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
ASSERT_EQ does not work with refrence #85
Comments
May be a solution is to use
But |
Maybe the solution is to remove the I don't have any code that uses |
Thanks for your suggestion to remove the static_cast. Yes I'm porting some Tests from x86 to arduino. So I'm doing further |
ASSERT_EQ from aunit/contrib/gtest.h does not compile when reference is used:
Compiler message is:
removing the cast from the macros make it compile.
May be there is a better (improved) version instead of
static_cast<decltype(a)>(e)
Complete sketch:
ArrayTest_with_AUnit.ino.txt
The text was updated successfully, but these errors were encountered: