Renaming of some of Pod::Simple's test files to make it more 8.3
[p5sagit/p5-mst-13.2.git] / lib / bignum / t / option_l.t
CommitLineData
126f3c5f 1#!/usr/bin/perl -w
2
b68b7ab1 3use Test::More;
126f3c5f 4use strict;
5
6BEGIN
7 {
8 $| = 1;
9 chdir 't' if -d 't';
10 unshift @INC, '../lib';
11 plan tests => 12;
12 }
13
14use bignum;
15
16my $rc = eval ('bignum->import( "l" => "foo" );');
b68b7ab1 17is ($@,''); # shouldn't die
126f3c5f 18$rc = eval ('bignum->import( "lib" => "foo" );');
b68b7ab1 19is ($@,''); # ditto
126f3c5f 20
21$rc = eval ('bignum->import( "foo" => "bar" );');
b68b7ab1 22like ($@, qr/^Unknown option foo/i, 'died'); # should die
126f3c5f 23
24# test that options are only lowercase (don't see a reason why allow UPPER)
25
26foreach (qw/L LIB Lib T Trace TRACE V Version VERSION/)
27 {
28 $rc = eval ('bignum->import( "$_" => "bar" );');
b68b7ab1 29 like ($@, qr/^Unknown option $_/i, 'died'); # should die
126f3c5f 30 }
31