diff options
author | Jetroid <holtjet@gmail.com> | 2015-08-24 12:01:29 +0100 |
---|---|---|
committer | Jetroid <holtjet@gmail.com> | 2015-08-24 14:24:10 +0100 |
commit | 1d9189d860f28067b72093cbe4027cf49b7d612c (patch) | |
tree | 315a8a912f1bd8d17530b84bdb923b45596cae3d /spec/acceptance/reverse_spec.rb | |
parent | 1d89df906e1ae1d09a862974181663caaf8012c6 (diff) |
(MODULE-2456) Modify union to accept more than two arrays
Add spec tests to test the new functionality:
*Case for 3 arrays.
*Case for 4 arrays.
Modify README to note new functionality.
This is for issue MODULE-2456, follow the precedent of MODULE-444.
This change allows union to be much more useful, unioning many arrays
in one line rather than in n lines. Additionally, as this is only added
functionality, and does not affect the 2 array case that all modules
currently using array are using, it should not affect any existing
modules utilizing union.
This is now useful, for example, for merging many arrays of resources
(eg: packages.) to generate just one list with no duplicates, to avoid
duplicate resource declarations.
Diffstat (limited to 'spec/acceptance/reverse_spec.rb')
0 files changed, 0 insertions, 0 deletions