File: compat_01-selfcheck.t

package info (click to toggle)
libfile-mmagic-xs-perl 0.09003-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 340 kB
  • ctags: 596
  • sloc: perl: 950; ansic: 536; makefile: 51; xml: 1
file content (14 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# perl-test
# $Id: 01-selfcheck.t,v 1.2 2003/11/21 02:25:52 knok Exp $

use strict;
use Test::More (tests => 2);

BEGIN
{
    use_ok("File::MMagic::XS", qw(:compat));
}

my $magic = File::MMagic::XS->new();
my $ret = $magic->checktype_filename(__FILE__);
is($ret, 'text/plain', "mime should be 'text/plain'. got $ret");