Comments (8)
Is there a more appropriate way to illustrate the limitations of operators, do you think? 🙂
from pskoans.
Not really.... I know my experience with POSH. I'm not sure someone with less experience would be able to pass this test. I had to jump into the terminal and run the line and look at $error[0]. Not sure how else to see this. Maybe I am the target audience. If that's the case... than maybe it's perfectly fine.
from pskoans.
Does running the Measure-Karma
command when at this test point not show the expected error message?
from pskoans.
from pskoans.
In this case, I think it is. 😄
It's more intended to simply illustrate that a) an error will be thrown, and b) what that error looks like, so folks can learn a little of what to look for when their code breaks in certain ways. 😁
from pskoans.
Of course if they just run the code, they don't even see that error message by default.
I answered this with System.Management.Automation.RuntimeException
, because that's the actual exceptiontype (I think). Where it looks like you're expecting the Exception.Message. I don't know. Just offering feedback.
from pskoans.
I think I've already got that changed in the latest commit to use -ExpectedMessage, yeah. Actually, that's doubly a bug because there is a type called __
but not one ___
so that message would be much clearer if I had typed the dummy type name properly 😂
from pskoans.
I believe this has been addressed in the recent release(s). 😄
from pskoans.
Related Issues (20)
- Problem in koan AboutModules
- Koan AboutSelectObject has undesired error
- Problem with different PowerShell versions in koan AboutSortObject
- Topics solved before starting in koan AboutComparison
- Show-Karma failed on relatively fresh installation HOT 6
- AboutCmdletVerbs.Koans.ps1 - Forward slash in $Filename results in wrong string comparison at the end HOT 2
- AboutGetMember.Koans.ps1 does not return correct result HOT 4
- AboutPSProviders.Koans.ps1 - thows errors (may be unavoidable) HOT 8
- Recursion on $home throws UnauthorizedAccessException - Local Issue HOT 4
- Enumeration time is quite long the more you progress HOT 2
- AboutRedirection misses some spaces in output?
- Get-Unique is used on unsorted collections
- AboutAssignmentAndArithmetic: ExpectedMessage and implicit character ranges in Pester 5 HOT 1
- Show-Karma fails after repo-based installation HOT 2
- AboutBitwiseOperations - Error in description? HOT 1
- Show-Karma -Contemplate breaks after Classes HOT 12
- VScode error: Could not find the module 'PSKoans'. commands typed in console window work fine. HOT 2
- About XML addresses $RootElement but that changes with the next test HOT 1
- Regex: $matches[0] is empty within "It does not need to match the entire string" and "It is not just an array of text"
- AboutNumbers wrong types HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pskoans.