summaryrefslogtreecommitdiff
path: root/t/readfile.t
blob: 5332f4c352a0abc603ab8786febf6780820997da (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More tests => 3;
  5. use Encode;
  6. BEGIN { use_ok("IkiWiki"); }
  7. # should read files as utf8
  8. ok(Encode::is_utf8(IkiWiki::readfile("t/test1.mdwn"), 1));
  9. is(IkiWiki::readfile("t/test1.mdwn"),
  10. Encode::decode_utf8('![o](../images/o.jpg "ó")'."\n".'óóóóó'."\n"));