16_flow.t 592 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use Slic3r::XS;
  5. use Test::More tests => 2;
  6. {
  7. my $flow = Slic3r::Flow->new_from_width(
  8. role => Slic3r::Flow::FLOW_ROLE_PERIMETER,
  9. width => '1',
  10. nozzle_diameter => 0.5,
  11. layer_height => 0.3,
  12. bridge_flow_ratio => 1,
  13. );
  14. isa_ok $flow, 'Slic3r::Flow', 'new_from_width';
  15. }
  16. {
  17. my $flow = Slic3r::Flow->new(
  18. width => 1,
  19. height => 0.4,
  20. nozzle_diameter => 0.5,
  21. );
  22. isa_ok $flow, 'Slic3r::Flow', 'new';
  23. }
  24. __END__