You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code/logic/fossil/test/assume.h
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2179,7 +2179,7 @@ extern "C" {
2179
2179
*/
2180
2180
#ifdef__cplusplus
2181
2181
#defineASSUME_ITS_EQUAL_BSTR(actual, expected) \
2182
-
FOSSIL_TEST_ASSUME(strcmp((const char*)(actual.c_str()), (const char*)(expected.c_str())) == 0, "Expected byte string " #actual " to be equal to " #expected)
2182
+
FOSSIL_TEST_ASSUME(strcmp((actual.c_str()), (expected.c_str())) == 0, "Expected byte string " #actual " to be equal to " #expected)
2183
2183
#else
2184
2184
#defineASSUME_ITS_EQUAL_BSTR(actual, expected) \
2185
2185
FOSSIL_TEST_ASSUME(strcmp((const char*)(actual), (const char*)(expected)) == 0, "Expected byte string " #actual " to be equal to " #expected)
@@ -2193,7 +2193,7 @@ extern "C" {
2193
2193
*/
2194
2194
#ifdef__cplusplus
2195
2195
#defineASSUME_NOT_EQUAL_BSTR(actual, expected) \
2196
-
FOSSIL_TEST_ASSUME(strcmp((const char*)(actual.c_str()), (const char*)(expected.c_str())) != 0, "Expected byte string " #actual " to not be equal to " #expected)
2196
+
FOSSIL_TEST_ASSUME(strcmp((actual.c_str()), (expected.c_str())) != 0, "Expected byte string " #actual " to not be equal to " #expected)
2197
2197
#else
2198
2198
#defineASSUME_NOT_EQUAL_BSTR(actual, expected) \
2199
2199
FOSSIL_TEST_ASSUME(strcmp((const char*)(actual), (const char*)(expected)) != 0, "Expected byte string " #actual " to not be equal to " #expected)
FOSSIL_TEST_ASSUME(strlen((const char*)(actual.c_str())) == (expected_len), "Expected length of byte string " #actual " to be equal to " #expected_len)
2210
+
FOSSIL_TEST_ASSUME(strlen((actual.c_str())) == (expected_len), "Expected length of byte string " #actual " to be equal to " #expected_len)
0 commit comments