aboutsummaryrefslogtreecommitdiff
path: root/docs/help/assert_assertwithmessage.html
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-19 16:06:15 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-19 16:07:54 -0500
commit8c2607133c1147eee5588738c9b05467b799b127 (patch)
tree4e60cd11ca720dac4c68268a32c61b8ce1d0ec12 /docs/help/assert_assertwithmessage.html
parent9adb6f754d9e69b9db28b413eba90e3c4515d649 (diff)
Align filenames with repl.js descriptions
Diffstat (limited to 'docs/help/assert_assertwithmessage.html')
-rw-r--r--docs/help/assert_assertwithmessage.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/help/assert_assertwithmessage.html b/docs/help/assert_assertwithmessage.html
new file mode 100644
index 00000000..e172ecbd
--- /dev/null
+++ b/docs/help/assert_assertwithmessage.html
@@ -0,0 +1,29 @@
+<head>
+ <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
+ <link href="../style.css" rel="stylesheet"/>
+ <title>BQN: Exclamation Mark (`!`)</title>
+</head>
+<div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div>
+<h1 id="exclamation-mark-"><a class="header" href="#exclamation-mark-">Exclamation Mark (<code><span class='Function'>!</span></code>)</a></h1>
+<h2 id="--assert"><a class="header" href="#--assert"><code><span class='Function'>!</span> <span class='Value'>𝕩</span></code>: Assert</a></h2>
+<p>Throw an error if <code><span class='Value'>𝕩</span></code> is not 1.</p>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgISAxCgogICAhIDIKCiAgICEgImhlbGxvIg==">↗️</a><pre> <span class='Function'>!</span> <span class='Number'>1</span>
+1
+
+ <span class='Function'>!</span> <span class='Number'>2</span>
+<span class='Error'>Error: Assertion error</span>
+
+ <span class='Function'>!</span> <span class='String'>&quot;hello&quot;</span>
+<span class='Error'>Error: hello</span>
+</pre>
+<h2 id="---dyad"><a class="header" href="#---dyad"><code><span class='Value'>𝕨</span> <span class='Function'>!</span> <span class='Value'>𝕩</span></code>: Dyad</a></h2>
+<p>Throw an error with message <code><span class='Value'>𝕨</span></code> if <code><span class='Value'>𝕩</span></code> is not 1.</p>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgImhpIiAhIDEKCiAgICJ0d28iICEgMgoKICAgImhlbGxvIGVycm9yIiAhICJoZWxsbyI=">↗️</a><pre> <span class='String'>&quot;hi&quot;</span> <span class='Function'>!</span> <span class='Number'>1</span>
+1
+
+ <span class='String'>&quot;two&quot;</span> <span class='Function'>!</span> <span class='Number'>2</span>
+<span class='Error'>Error: two</span>
+
+ <span class='String'>&quot;hello error&quot;</span> <span class='Function'>!</span> <span class='String'>&quot;hello&quot;</span>
+<span class='Error'>Error: hello error</span>
+</pre>