<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ATiming%2Ftestcases</id>
	<title>Module:Timing/testcases - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ATiming%2Ftestcases"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Timing/testcases&amp;action=history"/>
	<updated>2026-05-24T16:18:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Timing/testcases&amp;diff=147274&amp;oldid=prev</id>
		<title>imported&gt;Jeblad at 21:41, 16 January 2016</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Timing/testcases&amp;diff=147274&amp;oldid=prev"/>
		<updated>2016-01-16T21:41:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require &amp;#039;Module:BDD&amp;#039;()&lt;br /&gt;
local p = require(&amp;#039;Module:Timing&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
describe({en=&amp;#039;statistical analysis&amp;#039;, nb=&amp;#039;statistisk analyse&amp;#039;}, function()&lt;br /&gt;
	context({en=&amp;#039;for a constant serie&amp;#039;, nb=&amp;#039;for en konstant serie&amp;#039;}, function()&lt;br /&gt;
		it({en=&amp;#039;should give mean&amp;#039;, nb=&amp;#039;skal finnes middelverdi&amp;#039;}, function()&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.stats&amp;quot;&amp;#039;, p.stats({ -1, -1, -1 })[1]):toBe( -1 )&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.stats&amp;quot;&amp;#039;, p.stats({ 0, 0 })[1]):toBe( 0 )&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.stats&amp;quot;&amp;#039;, p.stats({ 2, 2, 2, 2 })[1]):toBe( 2 )&lt;br /&gt;
		end)&lt;br /&gt;
		it({en=&amp;#039;should give variance&amp;#039;, nb=&amp;#039;skal finnes varians&amp;#039;}, function()&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.stats&amp;quot;&amp;#039;, p.stats({ -1, -1, -1 })[2]):toBe( 0 )&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.stats&amp;quot;&amp;#039;, p.stats({ 0, 0 })[2]):toBe( 0 )&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.stats&amp;quot;&amp;#039;, p.stats({ 2, 2, 2, 2 })[2]):toBe( 0 )&lt;br /&gt;
		end)&lt;br /&gt;
	end)&lt;br /&gt;
	context({en=&amp;#039;for an alternating serie&amp;#039;, nb=&amp;#039;for en vekslende serie&amp;#039;}, function()&lt;br /&gt;
		it({en=&amp;#039;should give mean&amp;#039;, nb=&amp;#039;skal finnes middelverdi&amp;#039;}, function()&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.stats&amp;quot;&amp;#039;, p.stats({ -1, -1, 1, 1 })[1]):toBe( 0 )&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.stats&amp;quot;&amp;#039;, p.stats({ 2, 2, 4, 4 })[1]):toBe( 3 )&lt;br /&gt;
		end)&lt;br /&gt;
		it({en=&amp;#039;should give variance&amp;#039;, nb=&amp;#039;skal finnes varians&amp;#039;}, function()&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.stats&amp;quot;&amp;#039;, p.stats({ -1, -1, 1, 1 })[2]):toBe( 1 )&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.stats&amp;quot;&amp;#039;, p.stats({ 2, 2, 4, 4 })[2]):toBe( 1 )&lt;br /&gt;
		end)&lt;br /&gt;
	end)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
describe({en=&amp;#039;difference against a baseline&amp;#039;, nb=&amp;#039;forskjell mot en grunnlinje&amp;#039;}, function()&lt;br /&gt;
	context({en=&amp;#039;for equal pairs&amp;#039;, nb=&amp;#039;for like par&amp;#039;}, function()&lt;br /&gt;
		it({en=&amp;#039;should give mean&amp;#039;, nb=&amp;#039;skal finnes middelverdi&amp;#039;}, function()&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.combine&amp;quot;&amp;#039;, p.combine({ -1, 0 }, { -1, 0 })[1]):toBe( 0 )&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.combine&amp;quot;&amp;#039;, p.combine({ 2, 1 }, { 2, 1 })[1]):toBe( 0 )&lt;br /&gt;
		end)&lt;br /&gt;
		it({en=&amp;#039;should give variance&amp;#039;, nb=&amp;#039;skal finnes varians&amp;#039;}, function()&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.combine&amp;quot;&amp;#039;, p.combine({ -1, 0 }, { -1, 0 })[2]):toBe( 0 )&lt;br /&gt;
			expect(&amp;#039;&amp;quot;p.combine&amp;quot;&amp;#039;, p.combine({ 2, 1 }, { 2, 1 })[2]):toBe( math.pow(2, 0.5) )&lt;br /&gt;
		end)&lt;br /&gt;
	end)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
return result(&amp;#039;Module:Timing&amp;#039;)&lt;/div&gt;</summary>
		<author><name>imported&gt;Jeblad</name></author>
	</entry>
</feed>