Skip to content

Commit b24440a

Browse files
small change to the bitwise assumtions
1 parent dfbbe00 commit b24440a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

code/logic/fossil/pizza/assume.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,31 +82,31 @@ extern "C" {
8282
* @param actual The bitwise expression to be evaluated.
8383
*/
8484
#define ASSUME_ITS_BITWISE_TRUE(actual) \
85-
FOSSIL_TEST_ASSUME((actual), _FOSSIL_TEST_ASSUME_MESSAGE("Expected " #actual " of value %s to be true", (actual) ? "true" : "false"))
85+
FOSSIL_TEST_ASSUME((actual), _FOSSIL_TEST_ASSUME_MESSAGE("Expected " #actual " of value %d to be true", (actual) ? 1 : 0))
8686

8787
/**
8888
* @brief Assumes that the given bitwise expression is false.
8989
*
9090
* @param actual The bitwise expression to be evaluated.
9191
*/
9292
#define ASSUME_ITS_BITWISE_FALSE(actual) \
93-
FOSSIL_TEST_ASSUME(!(actual), _FOSSIL_TEST_ASSUME_MESSAGE("Expected " #actual " of value %s to be false", (actual) ? "true" : "false"))
93+
FOSSIL_TEST_ASSUME(!(actual), _FOSSIL_TEST_ASSUME_MESSAGE("Expected " #actual " of value %d to be false", (actual) ? 1 : 0))
9494

9595
/**
9696
* @brief Assumes that the given bitwise expression is not true.
9797
*
9898
* @param actual The bitwise expression to be evaluated.
9999
*/
100100
#define ASSUME_NOT_BITWISE_TRUE(actual) \
101-
FOSSIL_TEST_ASSUME(!(actual), _FOSSIL_TEST_ASSUME_MESSAGE("Expected " #actual " of value %s to not be true", (actual) ? "true" : "false"))
101+
FOSSIL_TEST_ASSUME(!(actual), _FOSSIL_TEST_ASSUME_MESSAGE("Expected " #actual " of value %d to not be true", (actual) ? 1 : 0))
102102

103103
/**
104104
* @brief Assumes that the given bitwise expression is not false.
105105
*
106106
* @param actual The bitwise expression to be evaluated.
107107
*/
108108
#define ASSUME_NOT_BITWISE_FALSE(actual) \
109-
FOSSIL_TEST_ASSUME((actual), _FOSSIL_TEST_ASSUME_MESSAGE("Expected " #actual " of value %s to not be false", (actual) ? "true" : "false"))
109+
FOSSIL_TEST_ASSUME((actual), _FOSSIL_TEST_ASSUME_MESSAGE("Expected " #actual " of value %d to not be false", (actual) ? 1 : 0))
110110

111111
/**
112112
* @brief Assumes that the given value is less than the expected value (bitwise).

0 commit comments

Comments
 (0)