Hello,
I have a question about ASSERT_NE, so I am thinking the assertion returns true if the 2 parameters are not equal right? But it seems to be failing on my unit test. Please see below, even though value 1 and value 2 are not equal. This should pass right?
Expected: (account.get_keys().m_spend_secret_key) != (keys.m_spend_secret_key),
actual: <821f77909fbd52db7596324128e63425e4e4b7d253e73ca95c12a968dd4b3f60e4ed086b9944aee0> vs <8d04533ad362f4273322b6091c7aff7e32ffa33b2a875a3fb100eace840db50d2f83b41d09>
Thanks.
--
---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/googletestframework/b2d73626-00ac-4a8a-aafb-1933c4b10012%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
What data type is m_spend_secret_key? If it overrides operator!=, that might explain the behavior you're seeing.--Josh Kelley
On Tue, May 7, 2019 at 9:34 AM <josephnicho...@gmail.com> wrote:
--Hello,
I have a question about ASSERT_NE, so I am thinking the assertion returns true if the 2 parameters are not equal right? But it seems to be failing on my unit test. Please see below, even though value 1 and value 2 are not equal. This should pass right?
Expected: (account.get_keys().m_spend_secret_key) != (keys.m_spend_secret_key),
actual: <821f77909fbd52db7596324128e63425e4e4b7d253e73ca95c12a968dd4b3f60e4ed086b9944aee0> vs <8d04533ad362f4273322b6091c7aff7e32ffa33b2a875a3fb100eace840db50d2f83b41d09>
Thanks.
---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframework+unsub...@googlegroups.com.
Hi Josh Kelley.Thanks for the reply.m_spend_secret_key is of type unsigned char[3504].
I think the != was not overloaded on this scope, what noticed is, when I do ASSERT_NE(1,2) it outputs correctly, but when I do the ASSERT_NE(<some 3504 byte char>, <some 3504 byte char>) it does not behave correctly even though I have debugged and found out params are different, one crazy thing though is when I do ASSERT_EQ(<some 3504 byte char>, <some 3504 byte char>) even with same params, it somewhat asserts that they are equal.Is there limitation or something that I don't know of?
Thanks.
On Tuesday, May 7, 2019 at 9:58:19 PM UTC+8, Josh Kelley wrote:
What data type is m_spend_secret_key? If it overrides operator!=, that might explain the behavior you're seeing.--Josh Kelley
On Tue, May 7, 2019 at 9:34 AM <josephnicho...@gmail.com> wrote:
--Hello,
I have a question about ASSERT_NE, so I am thinking the assertion returns true if the 2 parameters are not equal right? But it seems to be failing on my unit test. Please see below, even though value 1 and value 2 are not equal. This should pass right?
Expected: (account.get_keys().m_spend_secret_key) != (keys.m_spend_secret_key),
actual: <821f77909fbd52db7596324128e63425e4e4b7d253e73ca95c12a968dd4b3f60e4ed086b9944aee0> vs <8d04533ad362f4273322b6091c7aff7e32ffa33b2a875a3fb100eace840db50d2f83b41d09>
Thanks.
---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/googletestframework/b2d73626-00ac-4a8a-aafb-1933c4b10012%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/googletestframework/0aa1d82a-4999-440d-b679-9b3cf9a6f821%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "opensource-gtest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensource-gte...@google.com.
To view this discussion on the web visit https://groups.google.com/a/google.com/d/msgid/opensource-gtest/0aa1d82a-4999-440d-b679-9b3cf9a6f821%40googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/googletestframework/765d5fac-c62e-4fc3-a2fc-06e659390aee%40googlegroups.com.