From: Dagfinn Ilmari Mannsåker Date: Tue, 4 Dec 2012 16:02:09 +0000 (+0000) Subject: Don't rely on hash key order in tests (RT#81695) X-Git-Tag: 0.32~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Storage.git;a=commitdiff_plain;h=cd4cef76da2af19af449e8c4c366e3111c6530ba Don't rely on hash key order in tests (RT#81695) --- diff --git a/Changes b/Changes index 62f095b..cbf7c06 100644 --- a/Changes +++ b/Changes @@ -4,6 +4,7 @@ Revision history for MooseX-Storage RT##69811 * Create a JSON::Any object, so setting $ENV{JSON_ANY_CONFIG} works. Adjust tests that were setting the wrong values and the default happened to work. + * Don't rely on hash key order in tests (RT#81695) 0.31 * Add example for add_custom_type_handler to the MooseX::Storage::Engine docs. (perigrin) diff --git a/t/011_basic_json_w_utf8.t b/t/011_basic_json_w_utf8.t index dd4f370..a56dde0 100644 --- a/t/011_basic_json_w_utf8.t +++ b/t/011_basic_json_w_utf8.t @@ -18,7 +18,7 @@ BEGIN { # - SL BEGIN { $ENV{JSON_ANY_ORDER} = qw(XS); - $ENV{JSON_ANY_CONFIG} = "utf8=0"; + $ENV{JSON_ANY_CONFIG} = "utf8=0,canonical=1"; } plan tests => 16; diff --git a/t/104_io_w_utf8.t b/t/104_io_w_utf8.t index efff519..72fe8f9 100644 --- a/t/104_io_w_utf8.t +++ b/t/104_io_w_utf8.t @@ -21,7 +21,7 @@ BEGIN { # - SL BEGIN { $ENV{JSON_ANY_ORDER} = qw(XS); - $ENV{JSON_ANY_CONFIG} = "utf8=0"; + $ENV{JSON_ANY_CONFIG} = "utf8=0,canonical=1"; } plan tests => 8; use_ok('MooseX::Storage'); diff --git a/t/105_io_atomic_w_utf8.t b/t/105_io_atomic_w_utf8.t index 8aec7b4..bbf8020 100644 --- a/t/105_io_atomic_w_utf8.t +++ b/t/105_io_atomic_w_utf8.t @@ -21,7 +21,7 @@ BEGIN { # - SL BEGIN { $ENV{JSON_ANY_ORDER} = qw(XS); - $ENV{JSON_ANY_CONFIG} = "utf8=0"; + $ENV{JSON_ANY_CONFIG} = "utf8=0,canonical=1"; } plan tests => 8; use_ok('MooseX::Storage');