[PATCH] Syncing with Test::Simple 0.19
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / todo.t
index 399aa47..70ef083 100644 (file)
@@ -6,7 +6,7 @@ BEGIN {
         Test::More->import(skip_all => 'Need the new Test::Harness');
     }
     else {
-        Test::More->import(tests => 5);
+        Test::More->import(tests => 13);
     }
 }
 
@@ -30,3 +30,19 @@ TODO: {
 }
 
 pass("This is still not todo");
+
+
+TODO: {
+    local $TODO = "testing that error messages don't leak out of todo";
+
+    ok( 'this' eq 'that',   'ok' );
+
+    like( 'this', '/that/', 'like' );
+    is(   'this', 'that',   'is' );
+    isnt( 'this', 'this',   'isnt' );
+
+    can_ok('Fooble', 'yarble');
+    isa_ok('Fooble', 'yarble');
+    use_ok('Fooble');
+    require_ok('Fooble');
+}