Skip to content

Commit

Permalink
script.t test checks output of morph script less strictly
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav Matjukhin committed May 21, 2011
1 parent 1d1a5d8 commit f64a54a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Revision history for Morpheus

{{$NEXT}}
* script.t test checks output of 'morph' script less strictly,
now compatible with modern Data::Dumper and JSON versions

0.39 Tue Mar 15, 2011
* allow 'morph' script to dump nonrefs in json mode
Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = Morpheus
version = 0.39
version = 0.40
author = Andrei Mishchenko <[email protected]>
license = Perl_5
copyright_holder = Yandex LLC
Expand Down
11 changes: 4 additions & 7 deletions t/script.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ is(
);

$result = qx(bin/morph /foo/bar);
is(
like(
$result,
"5\n",
qr/^(5|"5")\n$/,
'morph without arguments prints json'
);

$result = qx(bin/morph --format=dumper /foo);
is(
like(
$result,
"{
'bar' => 5
}
",
qr/^\s*{\s*'bar'\s*=>\s*5\s*}\s*$/,
'morph with dumper format'
);

Expand Down

0 comments on commit f64a54a

Please sign in to comment.