Closed how-do-i-computer closed 4 years ago
I figured out the solution. When giving the answer:
All things that are not 'evaluated' are "recognised" as characters.
should be
All things that are not ''evaluated'' are "recognised" as characters.
No worries, I'll close this one for now then. I'll have to have a think on whether there's a better way to frame this koan so that error messages are more clearly shown, but I suspect doing so may be difficult at best, given we're dealing directly with PS's string tokenisation. :thinking:
Describe "Koan Bug, Issue, or Help Request"
AboutStrings
Context "The Problematic Assertions"
It 'interprets all quotation marks literally' { $AllYourQuotes = @" All things that are not 'evaluated' are "recognised" as characters. "@ '____' | Should -Be $AllYourQuotes } }
Context "Your Attempts"
All things that are not 'evaluated' are "recognised" as characters.
Context "Additional Information"
Returns the following error:
At C:\Users\sinit\PSKoans\Introduction\AboutStrings.Koans.ps1:233 char:39
× It "Error occurred in test script 'C:\Users\sinit\PSKoans\Introduction\AboutStrings.Koans.ps1'" at, C:\Users\sinit\OneDrive\Documents\PowerShell\Modules\Pester\4.10.1\Pester.psm1: line 1111
I'm using VSCode 1.47.2 with PS [7.1.0-preview.5]