File: 05-JSON-Syck.t

package info (click to toggle)
libjson-any-perl 1.28-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 252 kB
  • sloc: perl: 2,701; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl -w

use strict;
use Test::More;
eval "use JSON::Any qw(Syck)";
if ($@) {
    plan skip_all => "JSON::Syck not installed: $@";
}
else {
    plan tests => 2;
}

ok( JSON::Any->new->objToJson( { foo => 1 } ) );
ok( JSON::Any->new->jsonToObj('{ "foo" : 1 }') );