~ubuntu-branches/ubuntu/utopic/slic3r/utopic

« back to all changes in this revision

Viewing changes to xs/t/19_model.t

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2014-06-17 01:27:26 UTC
  • Revision ID: package-import@ubuntu.com-20140617012726-2wrs4zdo251nr4vg
Tags: upstream-1.1.4+dfsg
ImportĀ upstreamĀ versionĀ 1.1.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
 
 
3
use strict;
 
4
use warnings;
 
5
 
 
6
use Slic3r::XS;
 
7
use Test::More tests => 3;
 
8
 
 
9
{
 
10
    my $model = Slic3r::Model->new;
 
11
    my $object = $model->_add_object;
 
12
    isa_ok $object, 'Slic3r::Model::Object::Ref';
 
13
    isa_ok $object->origin_translation, 'Slic3r::Pointf::Ref';
 
14
    $object->origin_translation->translate(10,0);
 
15
    is_deeply \@{$object->origin_translation}, [10,0], 'origin_translation is modified by ref';
 
16
}
 
17
 
 
18
__END__