Test::Simple/More/Builder/Tutorial 0.41
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / todo.t
index 499229c..31ceb5f 100644 (file)
@@ -1,19 +1,21 @@
 #!perl -w
 
 BEGIN {
-    chdir 't' if -d 't';
-    @INC = '../lib';
+    if( $ENV{PERL_CORE} ) {
+        chdir 't';
+        @INC = '../lib';
+    }
 }
 
 BEGIN {
     require Test::Harness;
-    require Test::More;
+    use Test::More;
 
     if( $Test::Harness::VERSION < 1.23 ) {
-        Test::More->import(skip_all => 'Need Test::Harness 1.23 or up');
+        plan skip_all => 'Need Test::Harness 1.23 or up';
     }
     else {
-        Test::More->import(tests => 13);
+        plan tests => 15;
     }
 }
 
@@ -53,3 +55,12 @@ TODO: {
     use_ok('Fooble');
     require_ok('Fooble');
 }
+
+
+TODO: {
+    todo_skip "Just testing todo_skip", 2;
+
+    fail("Just testing todo");
+    die "todo_skip should prevent this";
+    pass("Again");
+}