summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2024-10-11 14:32:33 -0500
committersanine <sanine.not@pm.me>2024-10-11 14:32:33 -0500
commit27ee062687864dcd68e3a40adcab7f119bc10c04 (patch)
treecae1132c8afdd14d1bf9858639bb461f3e127136
parentbce51a68154c01c83fe713462adce9ffd7b42745 (diff)
fix macro title formattingHEADmain
-rw-r--r--README.md42
1 files changed, 28 insertions, 14 deletions
diff --git a/README.md b/README.md
index 4a15c52..d9876a8 100644
--- a/README.md
+++ b/README.md
@@ -140,65 +140,79 @@ but a require will also immediately stop executing the test in addition.
### check macros
-**CHECK(x)**
+#### CHECK(x)
+
Marks the test as failed if x is false and prints stringified x.
-**CHECK_EQ(x, y, fmt)**
+#### CHECK_EQ(x, y, fmt)
+
Marks the test as failed if x == y is false. Prints both the stringified names
of x and y as well as their values, using the printf format code provided in fmt.
-**CHECK_NEQ(x, y, fmt)**
+#### CHECK_NEQ(x, y, fmt)
+
Marks the test as failed if x != y is false. Prints both the stringified names
of x and y as well as their values, using the printf format code provided in fmt.
-**CHECK_LT(x, y, fmt)**
+#### CHECK_LT(x, y, fmt)
+
Marks the test as failed if x < y is false. Prints both the stringified names
of x and y as well as their values, using the printf format code provided in fmt.
-**CHECK_LE(x, y, fmt)**
+#### CHECK_LE(x, y, fmt)
+
Marks the test as failed if x <= y is false. Prints both the stringified names
of x and y as well as their values, using the printf format code provided in fmt.
-**CHECK_GT(x, y, fmt)**
+#### CHECK_GT(x, y, fmt)
+
Marks the test as failed if x > y is false. Prints both the stringified names
of x and y as well as their values, using the printf format code provided in fmt.
-**CHECK_GE(x, y, fmt)**
+#### CHECK_GE(x, y, fmt)
+
Marks the test as failed if x >= y is false. Prints both the stringified names
of x and y as well as their values, using the printf format code provided in fmt.
### require macros
-**REQUIRE(x)**
+#### REQUIRE(x)
+
Marks the test as failed and immediately ends test execution if x is false and
prints stringified x.
-**REQUIRE_EQ(x, y, fmt)**
+#### REQUIRE_EQ(x, y, fmt)
+
Marks the test as failed and immediately ends test execution if x == y is false.
Prints both the stringified names of x and y as well as their values, using the
printf format code provided in fmt.
-**REQUIRE_NEQ(x, y, fmt)**
+#### REQUIRE_NEQ(x, y, fmt)
+
Marks the test as failed and immediately ends test execution if x != y is false.
Prints both the stringified names of x and y as well as their values, using the
printf format code provided in fmt.
-**REQUIRE_LT(x, y, fmt)**
+#### REQUIRE_LT(x, y, fmt)
+
Marks the test as failed and immediately ends test execution if x < y is false.
Prints both the stringified names of x and y as well as their values, using the
printf format code provided in fmt.
-**REQUIRE_LE(x, y, fmt)**
+#### REQUIRE_LE(x, y, fmt)
+
Marks the test as failed and immediately ends test execution if x <= y is false.
Prints both the stringified names of x and y as well as their values, using the
printf format code provided in fmt.
-**REQUIRE_GT(x, y, fmt)**
+#### REQUIRE_GT(x, y, fmt)
+
Marks the test as failed and immediately ends test execution if x > y is false.
Prints both the stringified names of x and y as well as their values, using the
printf format code provided in fmt.
-**REQUIRE_GE(x, y, fmt)**
+#### REQUIRE_GE(x, y, fmt)
+
Marks the test as failed and immediately ends test execution if x >= y is false.
Prints both the stringified names of x and y as well as their values, using the
printf format code provided in fmt.