Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ To integrate Fossil Test into your project, follow these steps:
# ======================
[wrap-git]
url = https://github.com/fossillogic/fossil-test.git
revision = v1.0.7
revision = v1.0.8

[provide]
fossil-test = fossil_test_dep
Expand Down
65 changes: 0 additions & 65 deletions code/logic/fossil/test/assume.h
Original file line number Diff line number Diff line change
Expand Up @@ -2225,71 +2225,6 @@ extern "C" {
#define ASSUME_ITS_LENGTH_EQUAL_CSTR(actual, expected_len) \
FOSSIL_TEST_ASSUME(strlen((actual)) == (expected_len), "Expected length of C string " #actual " to be equal to " #expected_len)

// **************************************************
//
// Array ASSUMEions
//
// **************************************************

/**
* @brief Assumes that the given arrays are equal.
*
* @param actual The actual array.
* @param expected The expected array.
* @param length The length of the arrays.
*/
#define ASSUME_ITS_EQUAL_ARRAY(actual, expected, length) \
for (size_t i = 0; i < (length); i++) { \
FOSSIL_TEST_ASSUME((actual)[i] == (expected)[i], "Expected array element " #actual " to be equal to " #expected); \
}

/**
* @brief Assumes that the given arrays are not equal.
*
* @param actual The actual array.
* @param expected The expected array.
* @param length The length of the arrays.
*/
#define ASSUME_NOT_EQUAL_ARRAY(actual, expected, length) \
for (size_t i = 0; i < (length); i++) { \
FOSSIL_TEST_ASSUME((actual)[i] != (expected)[i], "Expected array element " #actual " to not be equal to " #expected); \
}

/**
* @brief Assumes that the length of the given arrays are equal.
*
* @param actual_length The actual length of the array.
* @param expected_length The expected length of the array.
*/
#define ASSUME_ITS_LENGTH_EQUAL_ARRAY(actual_length, expected_length) \
FOSSIL_TEST_ASSUME((actual_length) == (expected_length), "Expected array length " #actual_length " to be equal to " #expected_length)

/**
* @brief Assumes that the elements of the given array are within the specified range.
*
* @param array The array to be evaluated.
* @param min The minimum value of the range.
* @param max The maximum value of the range.
* @param length The length of the array.
*/
#define ASSUME_ITS_WITHIN_RANGE_ARRAY(array, min, max, length) \
for (size_t i = 0; i < (length); i++) { \
FOSSIL_TEST_ASSUME((array)[i] >= (min) && (array)[i] <= (max), "Expected array element " #array " to be within range [" #min ", " #max "]"); \
}

/**
* @brief Assumes that the elements of the given array are not within the specified range.
*
* @param array The array to be evaluated.
* @param min The minimum value of the range.
* @param max The maximum value of the range.
* @param length The length of the array.
*/
#define ASSUME_NOT_WITHIN_RANGE_ARRAY(array, min, max, length) \
for (size_t i = 0; i < (length); i++) { \
FOSSIL_TEST_ASSUME((array)[i] < (min) || (array)[i] > (max), "Expected array element " #array " to not be within range [" #min ", " #max "]"); \
}

#ifdef __cplusplus
}
#endif
Expand Down
145 changes: 0 additions & 145 deletions code/logic/fossil/test/benchmark.h

This file was deleted.

Loading