We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following macro
#define ASSERT_ARE_EQUAL(type, A, B, ...) \ do \ { \ char* ctrs_message = CONSTRUCT_CTRS_MESSAGE(__VA_ARGS__); \ std::wstring cppUnitTestMessage = ToString(ctrs_message); \ ctrs_sprintf_free(ctrs_message); \ Assert::AreEqual((type)(A), (type)(B), cppUnitTestMessage.c_str()); \ } while ((void)0, 0)
Will allow compilation (in C++) of something like:
ASSERT_ARE_EQUAL(uint64_t, 4873764, (void*)345)
which, frankly, should not be allowed. This creates problems when changing a type from uint64_t to a void* (on a x64 platform).
Consider letting the cast of (type)(A) be in the calling land?
Best Regards, Andrei Porumb
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following macro
Will allow compilation (in C++) of something like:
which, frankly, should not be allowed. This creates problems when changing a type from uint64_t to a void* (on a x64 platform).
Consider letting the cast of (type)(A) be in the calling land?
Best Regards,
Andrei Porumb
The text was updated successfully, but these errors were encountered: