File: add_type.t

package info (click to toggle)
libplack-perl 0.9989-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,556 kB
  • sloc: perl: 6,890; python: 6; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
use Plack::MIME;
use Test::More;

Plack::MIME->add_type(".foo" => "text/foo");
is( Plack::MIME->mime_type("bar.foo"), "text/foo" );

Plack::MIME->add_type(".c" => "application/c-source");
is( Plack::MIME->mime_type("FOO.C"), "application/c-source" );

done_testing;