2014-02-13 17:42:15 +00:00
|
|
|
use Test::More tests => 2;
|
2014-02-09 22:14:32 +00:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
BEGIN {
|
|
|
|
use FindBin;
|
|
|
|
use lib "$FindBin::Bin/../lib";
|
|
|
|
}
|
|
|
|
|
|
|
|
use Slic3r;
|
|
|
|
use Slic3r::Test;
|
|
|
|
|
|
|
|
{
|
|
|
|
my $config = Slic3r::Config->new_from_defaults;
|
|
|
|
$config->set('layer_height', 0.123);
|
|
|
|
$config->setenv;
|
|
|
|
is $ENV{SLIC3R_LAYER_HEIGHT}, '0.123', 'setenv';
|
|
|
|
}
|
|
|
|
|
2014-02-13 17:42:15 +00:00
|
|
|
{
|
|
|
|
my $config = Slic3r::Config->new_from_defaults;
|
|
|
|
$config->set('perimeter_extrusion_width', '250%');
|
|
|
|
ok $config->validate, 'percent extrusion width is validated';
|
|
|
|
}
|
|
|
|
|
2014-02-09 22:14:32 +00:00
|
|
|
__END__
|