21_gcode.t 374 B

1234567891011121314151617
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use Slic3r::XS;
  5. use Test::More tests => 2;
  6. {
  7. my $gcodegen = Slic3r::GCode->new;
  8. $gcodegen->set_origin(Slic3r::Pointf->new(10,0));
  9. is_deeply $gcodegen->origin->pp, [10,0], 'set_origin';
  10. $gcodegen->origin->translate(5,5);
  11. is_deeply $gcodegen->origin->pp, [15,5], 'origin returns reference to point';
  12. }
  13. __END__