diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-07-15 17:26:56 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-07-15 17:26:56 +0400 |
commit | 159a009f96ec2bcdbd5af6f4f71c1b50f3a3e10f (patch) | |
tree | 4b34f5454144f1dcb1ddedca6c1ecb8bbf98cdd7 /t/shells.t | |
parent | e485f0b130d5aad46cf62bd1e366a300cb642d34 (diff) |
Fix tests here and there
Diffstat (limited to 't/shells.t')
-rw-r--r-- | t/shells.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/shells.t b/t/shells.t index 7abca9b13..c24867256 100644 --- a/t/shells.t +++ b/t/shells.t @@ -42,11 +42,11 @@ use Slic3r::Test; fail "insufficient number of bottom solid layers" unless !defined(first { !$_ } @shells[0..$config->bottom_solid_layers-1]); fail "excessive number of bottom solid layers" - unless scalar(grep $_, @shells[0 .. $#shells/2]) != $config->bottom_solid_layers; + unless scalar(grep $_, @shells[0 .. $#shells/2]) == $config->bottom_solid_layers; fail "insufficient number of top solid layers" unless !defined(first { !$_ } @shells[-$config->top_solid_layers..-1]); fail "excessive number of top solid layers" - unless scalar(grep $_, @shells[($#shells/2)..$#shells]) != $config->top_solid_layers; + unless scalar(grep $_, @shells[($#shells/2)..$#shells]) == $config->top_solid_layers; 1; }; |