Permalink
Browse files

test for unusual throws. should still error

  • Loading branch information...
1 parent 4f53538 commit 28c03996092f34a4cf8e4a5b83e220517538c2e5 @dominictarr dominictarr committed Jan 20, 2011
Showing with 21 additions and 0 deletions.
  1. +21 −0 test/test-weird_throws.js
View
@@ -0,0 +1,21 @@
+if (module == require.main) {
+ return require('../lib/async_testing').run(process.ARGV);
+}
+
+module.exports = {
+ 'test throw null': function(test) {
+ throw null;
+ }
+, 'test throw undefined': function(test) {
+ throw undefined;
+ }
+, 'test throw boolean': function(test) {
+ throw false;
+ }
+, 'test throw number': function(test) {
+ throw 0;
+ }
+, 'test throw String': function(test) {
+ throw 'hello';
+ }
+}

0 comments on commit 28c0399

Please sign in to comment.