From: Emmanuel Rodriguez Date: Mon, 11 May 2009 11:52:28 +0000 (+0200) Subject: Fix the check for the default height X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84ac7d755bc8e0bbf74d651e68337d888f35e377;p=libchamplain Fix the check for the default height --- diff --git a/bindings/perl/Champlain/t/ChamplainView.t b/bindings/perl/Champlain/t/ChamplainView.t index 4364bb4..465c7cd 100644 --- a/bindings/perl/Champlain/t/ChamplainView.t +++ b/bindings/perl/Champlain/t/ChamplainView.t @@ -50,7 +50,7 @@ sub test_generic { # my $source_original = $view->get('map-source'); ok($view->get('width') == 0 || $view->get('width') == $source_original->get_tile_size, "original width"); - ok($view->get('height') || $view->get('height') == $source_original->get_tile_size, "original height"); + ok($view->get('height') == 0 || $view->get('height') == $source_original->get_tile_size, "original height"); # set_size() can be tested by checking the properties width and height $view->set_size(600, 400);