Help language development. Donate to The Perl Foundation

Data::Dump zef:tony-o last updated on 2021-09-03

t/03-array.t
#!/usr/bin/env perl6

use Test;
use Data::Dump;
plan 1;

my $out = Dump(@(
  { hello => 'world' },
  { one   => 2 },
), :color(False));

say $out;

ok $out eq "[\n  \{\n    hello => \"world\".Str,\n  },\n  \{\n    one => 2.Int,\n  },\n]";