<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=QA</id>
	<title>QA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=QA"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=QA&amp;action=history"/>
	<updated>2026-05-13T09:19:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=QA&amp;diff=1400&amp;oldid=prev</id>
		<title>Redspark: Initial Page</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=QA&amp;diff=1400&amp;oldid=prev"/>
		<updated>2025-04-05T01:10:56Z</updated>

		<summary type="html">&lt;p&gt;Initial Page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This system module provides functions for helping assure the quality of your code: assert conditions that you think should always be true, or otherwise check your assumptions and report when they fail.&lt;br /&gt;
&lt;br /&gt;
== Functions ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[qa.abort|abort(errMsg)]] || Prints a stack trace (optionally, after an error message), then exits the program.&lt;br /&gt;
|-&lt;br /&gt;
| [[qa.assert|assert(condition, desc)]] || Abort if the given condition is not true.  Error message can include the given (optional) description.&lt;br /&gt;
|-&lt;br /&gt;
| [[qa.assertEqual|assertEqual(actual, expected, note)]] || Abort if the first two parameters are not equal.  Additional descriptive note is optional.&lt;br /&gt;
|-&lt;br /&gt;
| [[qa.typeOf|typeOf(value)]] || Returns a the name of the data type as a String.&lt;br /&gt;
|-&lt;br /&gt;
| [[qa.assertType|assertType(value, type, note)]] || Abort if the first parameter is not of the specified type.  Additional descriptive note is optional.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;ms&amp;gt;&lt;br /&gt;
  import &amp;quot;qa&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  test = function (data)&lt;br /&gt;
    qa.assertType(data, map)&lt;br /&gt;
  end function&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Sys Modules]]&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:Command-Line_MiniScript]]&lt;/div&gt;</summary>
		<author><name>Redspark</name></author>
		
	</entry>
</feed>