From 312beb2d782a7d4eefb2b7fe4191f73c902e7ee4 Mon Sep 17 00:00:00 2001 From: Joel <32407840+vexx32@users.noreply.github.com> Date: Tue, 29 Oct 2019 08:25:55 -0400 Subject: [PATCH 1/2] :bug: Avoid casting [Blank] to [bool] This cast always returns $true, so don't pass [Blank] to Should -BeTrue --- PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1 b/PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1 index 02954c09a..1f6ad1772 100644 --- a/PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1 +++ b/PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1 @@ -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' { @@ -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 } } From 837af377ca1439cbf78ab921a481b722d0adda9c Mon Sep 17 00:00:00 2001 From: Joel <32407840+vexx32@users.noreply.github.com> Date: Tue, 29 Oct 2019 08:26:22 -0400 Subject: [PATCH 2/2] :memo: Update intro text a little. --- PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1 b/PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1 index 1f6ad1772..4f55ba3e5 100644 --- a/PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1 +++ b/PSKoans/Koans/Introduction/AboutAssertions.Koans.ps1 @@ -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' {