Replies: 1 comment 1 reply
-
Thanks for the great report. I'm able to reproduce it. 🙂 A helper-function Easily explained by this sample: (@{ "foo" = $true; "bar" = $false }).Keys[0][0][0][0]
foo
bar
(@{ "foo" = $true; "bar" = $false }).Keys.Clone().Gettype()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Object[] System.Array
(@{ "foo" = $true; "bar" = $false }).Keys.Clone()[0]
foo |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've been using Pester (v5.3.3) for a few weeks now and I'm encountering a strange behavior.
When I try to check a key in a hashtable, the command returns nothing and the process grows in memory.
I found a workaround by using a clone, which is strange because the negative assertion -Not -BeIn works fine.
You can test it:
Beta Was this translation helpful? Give feedback.
All reactions