Please sign in to comment.
Adding the as_* methods as requested in #230
NOTES/POSSIBLE ISSUES: - the test is calling ::2 directly rather then latest. I was unsure on the going convention for a version specific change - I am not using alias to build the aliases. It seemed a bit heavy handed so I am using the old-style delegation.
- Loading branch information...
Showing with 14 additions and 2 deletions.
|@@ -0,0 +1,11 @@|
|+use perl5i::2; # I did not see any testing README for how to introduce a|
|+ # version specific change? Is everything expected to be latest?|
|+use Test::More tests => 3;|
|+my $ref = [1..10];|
|+is_deeply $ref->mo->as_perl, $ref->mo->perl, 'perl';|
|+is_deeply $ref->mo->as_json, $ref->mo->dump(format=>'json'), 'json';|
|+is_deeply $ref->mo->as_yaml, $ref->mo->dump(format=>'yaml'), 'yaml';|