We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6db0150 + 1730690 commit c05ae17Copy full SHA for c05ae17
Transpilers/Keywords/README.md
@@ -52,6 +52,26 @@ Most keywords will be implemented as a Transpiler that tranforms a CommandAST.
52
} -Verbose
53
~~~
54
55
+## Assert Example 5
56
+
57
58
+~~~PowerShell
59
+ # assert can be used with the object pipeline. $_ will be the current object.
60
+ Invoke-PipeScript {
61
+ 1..4 | assert {$_ % 2} "$_ is not odd!"
62
+ } -Debug
63
+~~~
64
65
+## Assert Example 6
66
67
68
69
+ # You can provide a ```[ScriptBlock]``` as the second argument to see each failure
70
71
+ 1..4 | assert {$_ % 2} { Write-Error "$_ is not odd!" }
72
73
74
75
## New Example 1
76
77
0 commit comments