Add macro M_GREATER_THAN_P & M_LESS_OR_EQUAL_P (src, tests, doc)

This commit is contained in:
Patrick Pelissier committed 2021-02-07 09:53:13 +01:00
1 parent e84bc9fc0d
commit 0515cfd068
3 files changed
+32

No files matched your search

+14
View File
@@ -135,6 +135,20 @@ static void test_incdec(void)
assert(!M_GREATER_OR_EQUAL_P(4, 6));
assert(!M_GREATER_OR_EQUAL_P(4, 7));
assert(M_GREATER_THAN_P(4, 2));
assert(M_GREATER_THAN_P(4, 3));
assert(!M_GREATER_THAN_P(4, 4));
assert(!M_GREATER_THAN_P(4, 5));
assert(!M_GREATER_THAN_P(4, 6));
assert(!M_GREATER_THAN_P(4, 7));
assert(!M_LESS_OR_EQUAL_P(4, 2));
assert(!M_LESS_OR_EQUAL_P(4, 3));
assert(M_LESS_OR_EQUAL_P(4, 4));
assert(M_LESS_OR_EQUAL_P(4, 5));
assert(M_LESS_OR_EQUAL_P(4, 6));
assert(M_LESS_OR_EQUAL_P(4, 7));
assert(!M_KEYWORD_P(M_UNDERFLOW, M_SUB(1, 1)));
assert(M_KEYWORD_P(M_UNDERFLOW, M_SUB(1, 2)));
assert(M_KEYWORD_P(M_UNDERFLOW, M_SUB(1, 6)));