From 0bc02e173df062439304a4a8ef05ab7cf23b7720 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 24 Apr 2008 23:13:34 +0000 Subject: [PATCH] update Form/Text.t to work with new form api code --- t/Form/Text.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/Form/Text.t b/t/Form/Text.t index c82552b18..3b4ff0131 100644 --- a/t/Form/Text.t +++ b/t/Form/Text.t @@ -119,10 +119,10 @@ my $cntl = WebGUI::Form::Text->new($session,{ defaultValue => 4242 }); is($cntl->getValue('123-123-1234'), '123-123-1234', 'getValue(valid)'); is($cntl->getValue(0), 0, 'zero'); is($cntl->getValue(''), '', '""'); -is($cntl->getValue(undef), undef, 'undef returns undef'); +is($cntl->getValue(undef), 0, 'undef returns 0'); is($session->form->text(undef,'123-123-1234'), '123-123-1234', 'valid'); is($session->form->text(undef,0), 0, 'zero'); -is($session->form->text(undef,undef), undef, 'undef returns undef'); +is($session->form->text(undef,undef), 0, 'undef returns 0'); is($session->form->text(undef,''), '', '""'); __END__