projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Übersetzungen aktualisiert
[kivitendo-erp.git]
/
t
/
request
/
flatten.t
diff --git
a/t/request/flatten.t
b/t/request/flatten.t
index
590f5cf
..
60b2d33
100644
(file)
--- 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';
[ '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,
# tests from Hash::Flatten below
f {
'x' => 1,