-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Adds Bugfixing kata #344
base: main
Are you sure you want to change the base?
WIP: Adds Bugfixing kata #344
Conversation
function Debug-Me { | ||
$process = Get—Process -Id $PID | ||
if ($process -and $process.Name -eq 'powershell') { | ||
Write-Host 'you must be using PowerShell' | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't throw, will it? Might need to swap your Write-Host
for a throw
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will throw (as-is) until the bug is fixed :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me tweak it just a little, to make it less obvious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even the new example here doesn't look like it'll throw? Pester's Should -Throw
will expect a terminating error and nothing else... what here is going to throw? XD
Co-Authored-By: Joel Sallow (/u/ta11ow) <32407840+vexx32@users.noreply.github.com>
@indented-automation came across this in the Discord just now -- need one where misplacing the array index sometimes causes a bug. So, for example, sometimes something returns two objects with a string property each, sometimes just one, so an expression like |
PR Summary
Fixes #282
Context
A draft for bug fixing kata's. This is going to take a little time. Please add a WIP.
I would, however, appreciate any feedback as and when anyone feels like commenting :)
Changes
Adds Bug fixing kata
Checklist