<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Testing Javascript</title>
	<atom:link href="http://blog.silkapp.com/2010/02/testing-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.silkapp.com/2010/02/testing-javascript/</link>
	<description>Silk Blog</description>
	<lastBuildDate>Thu, 05 Aug 2010 23:24:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Erik</title>
		<link>http://blog.silkapp.com/2010/02/testing-javascript/comment-page-1/#comment-227</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Thu, 25 Feb 2010 15:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.typlab.com/?p=391#comment-227</guid>
		<description>@Darrin: Thanks for writing qc.js! Everything works at the moment, so we don&#039;t need anything. We might want to build shrinking like QuickCheck in Haskell has in the future.

@Paul: Sure, here it is. I hope it&#039;s useful to you.

&lt;pre&gt;&lt;code type=&quot;javascript&quot;&gt;
  function quickcheck (args, test, config)
  {
    if (!config) config = new Config(100, 1000);
    var p = new Prop(&quot;&quot;, args, test);
    var res = runProp(config, p);
    var passed = res.status === &quot;pass&quot;;
    var msg = res.status
    if (res.status === &quot;fail&quot;) msg += &quot; on &quot; + QUnit.jsDump.parse(res.failedCase);
    msg += &quot; (&quot; + res.counts.pass + &quot; passed, &quot; + res.counts.invalid + &quot; invalid)&quot;;
    ok(passed, msg);
  }
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Darrin: Thanks for writing qc.js! Everything works at the moment, so we don&#8217;t need anything. We might want to build shrinking like QuickCheck in Haskell has in the future.</p>
<p>@Paul: Sure, here it is. I hope it&#8217;s useful to you.</p>
<pre>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; function quickcheck (args, test, config)<br />
&nbsp; {<br />
&nbsp; &nbsp; if (!config) config = new Config(100, 1000);<br />
&nbsp; &nbsp; var p = new Prop(&quot;&quot;, args, test);<br />
&nbsp; &nbsp; var res = runProp(config, p);<br />
&nbsp; &nbsp; var passed = res.status === &quot;pass&quot;;<br />
&nbsp; &nbsp; var msg = res.status<br />
&nbsp; &nbsp; if (res.status === &quot;fail&quot;) msg += &quot; on &quot; + QUnit.jsDump.parse(res.failedCase);<br />
&nbsp; &nbsp; msg += &quot; (&quot; + res.counts.pass + &quot; passed, &quot; + res.counts.invalid + &quot; invalid)&quot;;<br />
&nbsp; &nbsp; ok(passed, msg);<br />
&nbsp; }</div></div>
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Irish</title>
		<link>http://blog.silkapp.com/2010/02/testing-javascript/comment-page-1/#comment-226</link>
		<dc:creator>Paul Irish</dc:creator>
		<pubDate>Thu, 25 Feb 2010 15:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.typlab.com/?p=391#comment-226</guid>
		<description>Can you share the qunit/quickcheck wrapper code?

Thanks</description>
		<content:encoded><![CDATA[<p>Can you share the qunit/quickcheck wrapper code?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darrin Thompson</title>
		<link>http://blog.silkapp.com/2010/02/testing-javascript/comment-page-1/#comment-220</link>
		<dc:creator>Darrin Thompson</dc:creator>
		<pubDate>Tue, 23 Feb 2010 14:26:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.typlab.com/?p=391#comment-220</guid>
		<description>Thanks for publishing your use of qc.js. If I can help you in any way please let me know.</description>
		<content:encoded><![CDATA[<p>Thanks for publishing your use of qc.js. If I can help you in any way please let me know.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
