Location: A review of cardiac cellular electrophysiology models @ 3d4e6bf98dd9 / dojo-presentation / js / dojo / dojox / math / tests / math.js

Author:
David Nickerson <nickerso@users.sourceforge.net>
Date:
2009-07-08 07:08:43+12:00
Desc:
adding generated content for the current version of the IUPS tutorial description
Permanent Source URI:
https://staging.physiomeproject.org/workspace/a1/rawfile/3d4e6bf98dd9bad94b65a1d1001cd4d0e779b8f4/dojo-presentation/js/dojo/dojox/math/tests/math.js

dojo.provide("dojox.lang.tests.array");

dojo.require("dojox.math");

(function(){
	tests.register("dojox.math.tests.factorial", [
		function fact0(t){ t.assertEqual(1, dojox.math.factorial(0)); },
		function fact5(t){ t.assertEqual(120, dojox.math.factorial(5)); },
		function factneg(t){ t.assertTrue(isNaN(dojox.math.factorial(-1))); }
	]);
})();