summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-02-16 18:34:49 +0100
committerLinnnus <[email protected]>2024-02-16 18:34:49 +0100
commit17919e38efb4c454edf48957bbc42f91c109e89e (patch)
treede61eae5776546c3b9bc42d1bf951300c747f13c
parent1ad63a50dcf01171a3e7b9a04b37d36933a769ef (diff)
test(creole): Add test for empty input
-rw-r--r--src/creole-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/creole-test.c b/src/creole-test.c
index 8844a88..76d62af 100644
--- a/src/creole-test.c
+++ b/src/creole-test.c
@@ -11,6 +11,11 @@ struct {
const char *name, *input, *output;
} tests[] = {
{
+ .name = "Empty input produces no output",
+ .input = "",
+ .output = ""
+ },
+ {
.name = "Basic paragraph markup",
.input = "Basic paragraph test with <, >, & and \"",
.output = "<p>Basic paragraph test with &lt;, &gt;, &amp; and &quot;</p>"