diff options
Diffstat (limited to 'help/!assert assertwithmsg.md')
| -rw-r--r-- | help/!assert assertwithmsg.md | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/help/!assert assertwithmsg.md b/help/!assert assertwithmsg.md index 4e823a1e..80dfb851 100644 --- a/help/!assert assertwithmsg.md +++ b/help/!assert assertwithmsg.md @@ -1,31 +1,33 @@ -Exclamation Mark (`!`) +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/!assert assertwithmsg.html).* + +# Exclamation Mark (`!`) `! 𝕩`: Assert Throw an error if `𝕩` is not 1. -``` - ! 1 -1 - ! 2 -Error: Assertion error -at ! 2 - ^ - ! "hello" -Error: hello -at ! "hello" -``` + + ! 1 + 1 + ! 2 + Error: Assertion error + at ! 2 + ^ + ! "hello" + Error: hello + at ! "hello" + `𝕨 ! 𝕩`: Dyad Throw an error with message `𝕨` if `𝕩` is not 1. -``` - "hi" ! 1 -1 - "two" ! 2 -Error: two -at "two" ! 2 - ^ - "hello error" ! "hello" -Error: hello error -at "hello error" ! "hello" -```
\ No newline at end of file + + "hi" ! 1 + 1 + "two" ! 2 + Error: two + at "two" ! 2 + ^ + "hello error" ! "hello" + Error: hello error + at "hello error" ! "hello" + |
