summaryrefslogtreecommitdiff
path: root/t/04-string-mod.t
diff options
context:
space:
mode:
authorbeatrice <beatrice@dangofactory.net>2026-11-22 20:01:32 +0900
committerbeatrice <beatrice@dangofactory.net>2026-11-22 20:01:32 +0900
commit34d8a1931452210c27180b244ec56bbc7ff5c431 (patch)
tree8b8a15a2c32937675be1c58bb79ed8344a2f12b8 /t/04-string-mod.t
downloadFile-MMagic-master.tar.gz
File-MMagic-master.zip
Import File-MMagic-1.30.tar.gzHEADlocal/File-MMagicmaster
Diffstat (limited to 't/04-string-mod.t')
-rw-r--r--t/04-string-mod.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/04-string-mod.t b/t/04-string-mod.t
new file mode 100644
index 0000000..80bdf5e
--- /dev/null
+++ b/t/04-string-mod.t
@@ -0,0 +1,19 @@
+# perl-test
+# $Id: 04-string-mod.t 187 2005-07-29 05:55:40Z knok $
+
+use strict;
+use Test;
+
+BEGIN { plan tests => 2 };
+
+use File::MMagic;
+
+my $dir = -d 't' ? 't/' : '';
+
+
+my $m1 = File::MMagic->new($dir . 'test-magic');
+my $ret = $m1->checktype_filename($dir . 'test.html');
+ok($ret eq 'text/html');
+my $m2 = File::MMagic->new();
+$ret = $m2->checktype_filename($dir . 'test.html');
+ok($ret eq 'text/html');