Skip to content
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

AboutAssertions - Avoid Casting [Blank] to [bool] #316

Merged
merged 2 commits into from
Oct 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ param()
This is where the fun begins! Each koan contains an example designed
to teach you a lesson about PowerShell. If you execute the program
defined in this project, you will get a message that the koan below
has failed. Your job is to fill in the blanks (the __, $__, FILL_ME_IN,
or $FILL_ME_IN symbols) to make it pass. Once you make the change,
re-run the program to make sure the koan passes, and continue on to the
next failing koan. With each passing koan, you'll learn more about
PowerShell, and add another weapon to your PowerShell scripting arsenal.
has failed. Your job is to fill in the blanks (the __ or ____ symbols)
to make it pass. Once you make the change, call Show-Karma to make sure
the koan passes, and continue on to the next failing koan.
With each passing koan, you'll learn more about PowerShell, and add
another tool to your PowerShell scripting belt.
#>
Describe 'Equality' {

Expand All @@ -30,7 +30,7 @@ Describe 'Equality' {
It 'expects you to fill in values' {
# Initiative will be rewarded.
__ | Should -Be (1 + 2)
__ + 5 -eq 10 | Should -BeTrue
__ + 5 | Should -Be 10
}

It 'sets the expectations' {
Expand All @@ -45,6 +45,6 @@ Describe 'Equality' {

It 'demands balance' {
# Both sides of the scale must be of equal measure.
__ + 2 -eq 3 | Should -BeTrue
__ + 2 | Should -Be 3
}
}