functional
functional copied to clipboard
bottom example in the readme doesn't work
Merge-Object @{a = @{b = 1}} @{a = @{c = 2}} -Strategy Fail
Merge-Object : A positional parameter cannot be found that accepts argument 'System.Collections.Hashtable'.
At line:1 char:1
+ Merge-Object @{a = @{b = 1}} @{a = @{c = 2}} -Strategy Fail
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Merge-Object], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Merge-Object
I found reading the pester tests helpful.
How would you do compare-object?
Looks like it should be
Merge-Object -Object @(@{a = @{b = 1}}, @{a = @{c = 2}}) -Strategy Fail