functional icon indicating copy to clipboard operation
functional copied to clipboard

bottom example in the readme doesn't work

Open jszabo98 opened this issue 5 years ago • 1 comments

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?

jszabo98 avatar Jun 27 '20 04:06 jszabo98

Looks like it should be

Merge-Object -Object @(@{a = @{b = 1}}, @{a = @{c = 2}}) -Strategy Fail

chriskuech avatar May 10 '21 16:05 chriskuech