From aea89fb37d9d5ef43c47b9f4a9622fa9dc13af52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 12 Jan 2016 11:54:56 +0100 Subject: [PATCH] =?utf8?q?Test=20zu=20SL::Request::unflatten,=20der=20pr?= =?utf8?q?=C3=BCft,=20ob=20nicht=20Hash-Keys=20erzeugt=20werden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Nicht, dass in einem Array aus Hashes key in einem Hash auftauchen, die nur in einem anderen drin sind. --- t/request/flatten.t | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/t/request/flatten.t b/t/request/flatten.t index 590f5cf28..60b2d3374 100644 --- a/t/request/flatten.t +++ b/t/request/flatten.t @@ -45,6 +45,15 @@ f { a => [ { c => 1, d => 2 }, { c => 3, d => 4 }, ] }, [ 'a[].d', 4 ], ], 'array of hashes'; +f { a => [ { a => 1, b => 2 }, { a => 3, c => 4 }, ] }, +[ + [ 'a[+].a', 1 ], + [ 'a[].b', 2 ], + [ 'a[+].a', 3 ], + [ 'a[].c', 4 ], +], 'array of hashes with not existing keys'; + + # tests from Hash::Flatten below f { 'x' => 1, -- 2.20.1