initial commit
[urisagit/Sort-Maker.git] / t / bad_code.t
CommitLineData
7468c584 1#!/usr/local/bin/perl -sw
2
3use strict ;
4
5use lib 't' ;
6use lib '..' ;
7
8use Test::More tests => 2 ;
9
10use Sort::Maker qw( :all ) ;
11
12my $err = make_sorter( 'plain', string => [] ) ;
13ok( !$err, 'bad extraction code - array ref' ) ;
14
15$err = make_sorter( 'GRT', number => \'foo' ) ;
16ok( !$err, 'bad extraction code - scalar ref' ) ;
17
18