title: How to assert that a function does not raise an exception
body: <p>QUnit has an assertion for testing that a function raises an exception (<a href="http://docs.jquery.com/QUnit/raises#blockexpectedmessage" rel="noreferrer">QUnit/raises</a>). Is it possible -- using QUnit -- to assert that a function <em>does not raise</em> an exception.</p>
  
  <p>I realize that it is possible to test it like in the following code:</p>
  
  <pre><code>try {
      theTest();
      ok(true);
  } catch (e) {
      ok(false, "Expected to succeed");
  }
  </code></pre>
  
  <p>But I think it ought to be possible using QUnit. Any clues?</p>