diff website/src/manual.html.luan @ 1164:1f9d34a6f308

remove assertions
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 07 Feb 2018 17:36:38 -0700
parents ad6b3b9fef40
children 73d754b1889f
line wrap: on
line diff
--- a/website/src/manual.html.luan	Tue Feb 06 22:04:47 2018 -0700
+++ b/website/src/manual.html.luan	Wed Feb 07 17:36:38 2018 -0700
@@ -1804,73 +1804,6 @@
 The basic library provides basic functions to Luan that don't depend on other libaries.
 
 
-<h4 heading><a name="Luan.assert" href="#Luan.assert"><code>Luan.assert (v [, message])</code></a></h4>
-
-<p>
-Could be defined as:
-
-<pre>
-	function Luan.assert(v,message)
-		return v or <a href="#Luan.error">Luan.error</a>(message or "assertion failed!")
-	end
-</pre>
-
-
-<h4 heading><a name="Luan.assert_binary" href="#Luan.assert_binary"><code>Luan.assert_binary (v)</code></a></h4>
-
-<p>
-Could be defined as:
-
-<pre>
-	function Luan.assert_binary(v)
-		local v_type = Luan.type(v)
-		return v_type == "binary" and v or <a href="#Luan.error">Luan.error</a>("bad argument #1 (binary expected, got "..v_type..")")
-	end
-</pre>
-
-
-<h4 heading><a name="Luan.assert_boolean" href="#Luan.assert_boolean"><code>Luan.assert_boolean (v)</code></a></h4>
-
-<p>
-Like <a href="#Luan.assert_binary"><code>assert_binary</code></a> but for type <code>boolean</code>.
-
-
-<h4 heading><a name="Luan.assert_function" href="#Luan.assert_function"><code>Luan.assert_function (v)</code></a></h4>
-
-<p>
-Like <a href="#Luan.assert_binary"><code>assert_binary</code></a> but for type <code>function</code>.
-
-
-<h4 heading><a name="Luan.assert_integer" href="#Luan.assert_integer"><code>Luan.assert_integer (v)</code></a></h4>
-
-<p>
-Asserts that <code>v</code> can be converted to Java type <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html">Integer</a> and returns an Integer.
-
-
-<h4 heading><a name="Luan.assert_long" href="#Luan.assert_long"><code>Luan.assert_long (v)</code></a></h4>
-
-<p>
-Asserts that <code>v</code> can be converted to Java type <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html">Long</a> and returns a Long.
-
-
-<h4 heading><a name="Luan.assert_number" href="#Luan.assert_number"><code>Luan.assert_number (v)</code></a></h4>
-
-<p>
-Like <a href="#Luan.assert_binary"><code>assert_binary</code></a> but for type <code>number</code>.
-
-
-<h4 heading><a name="Luan.assert_string" href="#Luan.assert_string"><code>Luan.assert_string (v)</code></a></h4>
-
-<p>
-Like <a href="#Luan.assert_binary"><code>assert_binary</code></a> but for type <code>string</code>.
-
-
-<h4 heading><a name="Luan.assert_table" href="#Luan.assert_table"><code>Luan.assert_table (v)</code></a></h4>
-
-<p>
-Like <a href="#Luan.assert_binary"><code>assert_binary</code></a> but for type <code>table</code>.
-
-
 <h4 heading><a name="Luan.do_file" href="#Luan.do_file"><code>Luan.do_file ([uri])</code></a></h4>
 
 <p>