From 8e263328677b6de4baca484908a014f020b95e48 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 1 May 2017 20:02:46 +0200 Subject: [PATCH] Add a serialize/unserialize roundtrip in test. #3921 --- xs/t/15_config.t | 1 + 1 file changed, 1 insertion(+) diff --git a/xs/t/15_config.t b/xs/t/15_config.t index f6efc8a5d..65854dca1 100644 --- a/xs/t/15_config.t +++ b/xs/t/15_config.t @@ -107,6 +107,7 @@ foreach my $config (Slic3r::Config->new, Slic3r::Config::Static::new_FullPrintCo is_deeply [ map $_->pp, @{$config->get('extruder_offset')} ], [[10,20],[30,45]], 'set/get points'; $config->set('extruder_offset', [Slic3r::Pointf->new(10,20),Slic3r::Pointf->new(30,45)]); is_deeply [ map $_->pp, @{$config->get('extruder_offset')} ], [[10,20],[30,45]], 'set/get points'; + $config->set_deserialize('extruder_offset', $config->serialize('extruder_offset')); is $config->serialize('extruder_offset'), '10x20,30x45', 'serialize points'; $config->set_deserialize('extruder_offset', '20x10'); is_deeply [ map $_->pp, @{$config->get('extruder_offset')} ], [[20,10]], 'deserialize points';