🌌 SpectraShell

🌌 SpectraShell

Current path: home/.cpan/build/YAML-LibYAML-v0.902.0-0/t/



⬆️ Go up: YAML-LibYAML-v0.902.0-0

📄 Viewing: dump-int.t

use strict;
use warnings;
use FindBin '$Bin';
use lib $Bin;
use TestYAMLTests tests => 5;

#use Devel::Peek ();

use B ();

my $data = { int => 42 };

my $flags = B::svref_2object(\$data->{int})->FLAGS;
my $string = $flags & B::SVp_POK;
my $int = $flags & B::SVp_IOK;
#diag("Flags=$flags int=$int string=$string");

cmp_ok($string, '==', 0, "Before Dump we don't have a string");
cmp_ok($int, '>=', 0, "Before Dump we have an int");

#Devel::Peek::Dump($data->{int});

# Dump shouldn't modify the original data
my $dump = Dump $data;


my $flags2 = B::svref_2object(\$data->{int})->FLAGS;
$string = $flags2 & B::SVp_POK;
$int = $flags2 & B::SVp_IOK;
#diag("Flags=$flags 2int=$int string=$string");

cmp_ok($string, '==', 0, "After Dump we still don't have a string");
cmp_ok($int, '>=', 0, "After Dump we still have an int");

cmp_ok($flags2, '==', $flags, "Flags are the same as before ($flags == $flags2)");

#Devel::Peek::Dump($data->{int});



📁

ABOUT US

SAI Connections is an autism treatment and therapy centre in Mumbai, India. Since 2004, we have been helping individuals with autism spectrum disorder, ADHD and other learning disabilities to develop the necessary skills needed to live an empowered life. We work towards empowering individuals to live a life with dignity that every human deserves.

 

Read More

SERVICES OFFERED

Our spacious centre is the perfect location for children with autism to develop skills which help them adjust better to their environment. We also offer provide training to parents of autistic individuals to become better guides and understand their child, and training and certification to professionals interested in becoming consultants in the field of learning disabilities.

 

Read More

BLOG

Insights on dealing with autism spectrum disorder as a family member, real-life success stories and latest news in the world about autism, all rolled into 1 place.

  •  
    40
    Shares
  • 13
  • 4
  • 3
  • 5
  • 15
  •