diff options
Diffstat (limited to 'tests/extensions')
-rw-r--r--tests/extensions/test-email-avatar.lua7
1 file changed, 7 insertions, 0 deletions
diff --git a/tests/extensions/test-email-avatar.lua b/tests/extensions/test-email-avatar.lua
index bedcfe8..b4a4545 100644
--- a/tests/extensions/test-email-avatar.lua
+++ b/tests/extensions/test-email-avatar.lua
@@ -83,6 +83,13 @@ local started = os.clock()
render("<a" .. string.rep(" ", 40000) .. "b>", "x")
h.check("a long run of inner spaces is trimmed quickly", os.clock() - started < 0.5)
+started = os.clock()
+render(string.rep("<", 40000), "x")
+h.check("a long run of open brackets is unwrapped quickly", os.clock() - started < 0.5)
+
+h.check("the outermost brackets are the ones taken off",
+ hash_of(render("x <author@example.com> y", "x")) == plain)
+
if mode == "real" then
out = render("test@example.com", "x")
h.equals("a known address hashes to its published md5", hash_of(out), "55502f40dc8b7c769880b10874abc9d0")