# Copyright (c) 2009 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: Parameters2.bunit,v 1.4 2010/01/25 14:44:25 nagler Exp $ Unit(); [ sub {b_use('Bivio::t::Parameters::T1')} => [ s1 => [ 1 => [1, undef], [1, 2] => [1, 2], [undef] => qr{p1:.*empty}, [] => qr{p1:.*empty}, ], s2 => [ [undef, 'january'] => [0, [Type_Month()->JANUARY]], true => qr{p2:.*empty}, ['true', undef] => qr{p2:.*empty}, [qw(true january)] => [1, [Type_Month()->JANUARY]], [qw(false january february)] => [0, [Type_Month()->JANUARY, Type_Month()->FEBRUARY]], [{p2 => ['january']}] => qr{p1:.*empty}, [{p1 => undef, p2 => ['january']}] => [0, [Type_Month()->JANUARY]], [{p1 => 1, p2 => []}] => qr{p2:.*empty}, ], s3 => [ [] => [[Type_Month()->MARCH]], january => [[Type_Month()->JANUARY]], ], s4 => [ [] => [[]], [qw(may june)] => [[Month('MAY'), Month('JUNE')]], ], s5 => [ [] => [[Month('MARCH'), Month('JULY')]], [qw(may june)] => [[Month('MAY'), Month('JUNE')]], ], ], ];