From: Eden Cardim Date: Thu, 10 May 2012 22:30:39 +0000 (-0300) Subject: fixing test results data structure X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=202e9524a531601438171bb16315465b8e1d6ab3;p=scpubgit%2Fstemmatology.git fixing test results data structure --- diff --git a/t/load-save-speed.t b/t/load-save-speed.t index 126bb7b..57aa714 100644 --- a/t/load-save-speed.t +++ b/t/load-save-speed.t @@ -118,6 +118,8 @@ if(!$last_benchmark) { my $new_save_result = timethis(5, $test_save); my $new_save = $new_save_result->[1] + $new_save_result->[2]; +use Data::Dump; + my $old_save = $last_benchmark->{save_times}[1] + $last_benchmark->{save_times}[2]; ok( $new_save < $old_save, "Saving to a Tradition Directory got faster: $new_save vs $old_save"); @@ -163,15 +165,12 @@ sub load_benchmark { } sub fresh_benchmark { - return - [ - { + return { git_hash => '', host => hostname(), load_times => [1000, 1000, 1000, 0, 0, 5], save_times => [1000, 1000, 1000, 0, 0, 20], } - ]; } sub save_benchmark {