forked from msgpack/msgpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perl: add JSON.pm-like interface: Data::MessagePack->new->encode(...)
- Loading branch information
Fuji Goro
committed
Aug 19, 2011
1 parent
92718e2
commit 356b7b4
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!perl | ||
use strict; | ||
use warnings; | ||
|
||
use Test::More; | ||
|
||
use Data::MessagePack; | ||
|
||
my $mp = Data::MessagePack->new(); | ||
|
||
is_deeply $mp->decode( $mp->encode(\%ENV) ), \%ENV; | ||
|
||
|
||
done_testing; | ||
|