Make inline_slot_access use double quotes to be consistent (found by
[gitmo/Class-MOP.git] / t / 061_instance_inline.t
index 9e2e265..3856bfe 100644 (file)
@@ -18,11 +18,11 @@ my $C = 'Class::MOP::Instance';
       'bless {} => $class',
       '... got the right code for create_instance');
     is($C->inline_get_slot_value($instance, $slot_name),
-      '$self->{"foo"}',
+      "\$self->{'foo'}",
       '... got the right code for get_slot_value');
 
     is($C->inline_set_slot_value($instance, $slot_name, $value),
-      '$self->{"foo"} = $value',
+      "\$self->{'foo'} = \$value",
       '... got the right code for set_slot_value');
 
     is($C->inline_initialize_slot($instance, $slot_name),
@@ -30,18 +30,18 @@ my $C = 'Class::MOP::Instance';
       '... got the right code for initialize_slot');
 
     is($C->inline_is_slot_initialized($instance, $slot_name),
-      'exists $self->{"foo"}',
+      "exists \$self->{'foo'}",
       '... got the right code for get_slot_value');
 
     is($C->inline_weaken_slot_value($instance, $slot_name),
-      'Scalar::Util::weaken( $self->{"foo"} )',
+      "Scalar::Util::weaken( \$self->{'foo'} )",
       '... got the right code for weaken_slot_value');
 
     is($C->inline_strengthen_slot_value($instance, $slot_name),
-      '$self->{"foo"} = $self->{"foo"}',
+      "\$self->{'foo'} = \$self->{'foo'}",
       '... got the right code for strengthen_slot_value');
     is($C->inline_rebless_instance_structure($instance, $class),
-      'bless $self => $class',
+      "bless \$self => \$class",
       '... got the right code for rebless_instance_structure');
 }