X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9293d2c7064c7c6aafb84ef2351396c68f3b9551..7cedc1fee445b70b4060277c46eb4d06686d1b81:/t/syslog.t diff --git a/t/syslog.t b/t/syslog.t index 28272e2dc..ffe8635b3 100644 --- a/t/syslog.t +++ b/t/syslog.t @@ -1,14 +1,18 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 3; +use Test::More tests => 5; use utf8; BEGIN { use_ok("IkiWiki"); } $IkiWiki::config{verbose} = 1; $IkiWiki::config{syslog} = 1; -$IkiWiki::config{wikiname} = 'ascii'; -is(debug('test'), ''); + +$IkiWiki::config{wikiname} = 'ASCII'; +is(debug('test'), '', 'plain ASCII syslog'); $IkiWiki::config{wikiname} = 'not ⒶSCII'; -is(debug('test'), ''); +is(debug('test'), '', 'UTF8 syslog'); +my $orig = $IkiWiki::config{wikiname}; +is(debug('test'), '', 'check for idempotency'); +is($IkiWiki::config{wikiname}, $orig, 'unchanged config');