File: 100_compat_selfcheck.t

package info (click to toggle)
libfile-mmagic-xs-perl 0.09008-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 484 kB
  • sloc: perl: 2,130; ansic: 1,858; makefile: 9; xml: 1
file content (14 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (7)
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");