diff options
Diffstat (limited to 't')
-rw-r--r-- | t/hval.t | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -32,4 +32,14 @@ EOF is($html, $exp, 'only obfuscated relevant addresses'); +is('foo-bar', PublicInbox::Hval::to_filename('foo bar '), + 'to_filename has no trailing -'); + +is('foo-bar', PublicInbox::Hval::to_filename("foo bar\nanother line\n"), + 'to_filename has no repeated -, and nothing past LF'); + +is('foo.bar', PublicInbox::Hval::to_filename("foo....bar"), + 'to_filename squeezes -'); + + done_testing(); |