# Copyright (c) 2005-2006 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: Language.bunit,v 1.1 2006/07/29 02:18:00 nagler Exp $ config({ 'Bivio::IO::ClassLoader' => { maps => { TestLanguage => ['Bivio::Test::t::Language'], }, }, }); [ class() => [ { method => 'test_run', compute_params => sub { my($case, $params) = @_; return [\$params->[0]], }, } => [ map({ [$_] => [undef], } q{ test_setup('T1', 'x1'); }, q{ test_setup('T1', 'x2'); die unless double_it('hello') eq 'hellohello' }, q{ test_setup('T1', 'x3'); test_deviance(); die_now(); }, q{ test_setup('T1', 'x4'); test_deviance('DIE: you gravy sucking pig'); die_now(); }, ), [q{ test_setup('T1', 'x5'); die_now(); }] => qr/Bivio::Die/s, [q{ test_setup('T1', 'x6'); test_deviance('NO WAY'); die_now(); }] => qr/Bivio::Die.*not match pattern:.*NO WAY/is, ], ], ];