]> err.no Git - libchamplain/commitdiff
Fix the check for the default height
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Mon, 11 May 2009 11:52:28 +0000 (13:52 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 12 May 2009 01:24:15 +0000 (21:24 -0400)
bindings/perl/Champlain/t/ChamplainView.t

index 4364bb44354fdd9e0b547e8cb393199aa32a7f7f..465c7cdbd130fa62dd5297ccd4de52f6a477aaf6 100644 (file)
@@ -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);