You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
data-hal/t/double.t

12 lines
271 B

use strictures;
use Test::More import => [qw(done_testing is)];
use Data::HAL qw();
use File::Slurp qw(read_file);
my $hal = Data::HAL->from_json(scalar read_file 't/example.json');
my $json1 = $hal->as_json;
my $json2 = $hal->as_json;
is $json2, $json1;
done_testing;