Add a test to Utility.t to make sure that WebGUI::Utility::round also rounds up.

Add Paginator tests for paginating array data.
Fix an off by 1 error in the Paginator when handling array data.  SQL data is fine.
This commit is contained in:
Colin Kuskie 2007-01-10 03:03:31 +00:00
parent 6682be305b
commit 797f5f9363
4 changed files with 35 additions and 8 deletions

View file

@ -527,7 +527,7 @@ sub setDataByArrayRef {
my $self = shift;
my $rowRef = shift;
$self->{_rowRef} = $rowRef;
$self->{_totalRows} = $#{$rowRef};
$self->{_totalRows} = $#{$rowRef} + 1;
}