aboutsummaryrefslogtreecommitdiff
path: root/docs/help/assert_assertwithmsg.html
diff options
context:
space:
mode:
authorrazetime <raghuallthetime@hotmail.com>2022-01-19 22:48:16 +0530
committerrazetime <raghuallthetime@hotmail.com>2022-01-19 22:48:16 +0530
commit2c50d91ec7eb8bc7890befe874a0b93729c2437e (patch)
treeeb621b86b3c8269ab2dd63bd3c628acdf3521059 /docs/help/assert_assertwithmsg.html
parent6c111f1e71e945f66977aecc3322318aa21beacc (diff)
add h2s remove copied output, ascii filenames
Diffstat (limited to 'docs/help/assert_assertwithmsg.html')
-rw-r--r--docs/help/assert_assertwithmsg.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/help/assert_assertwithmsg.html b/docs/help/assert_assertwithmsg.html
new file mode 100644
index 00000000..e172ecbd
--- /dev/null
+++ b/docs/help/assert_assertwithmsg.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>