Upgrade to Test-Simple-0.63
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / tbt_05faildiag.t
CommitLineData
845d7e37 1#!/usr/bin/perl
2
c0888b21 3BEGIN {
4 if( $ENV{PERL_CORE} ) {
5 chdir 't';
6 @INC = '../lib';
7 }
8}
9
845d7e37 10use Test::Builder::Tester tests => 5;
11use Test::More;
12
13# test_fail
14
68938d83 15test_fail(+1, 'one');
845d7e37 16ok(0,"one");
17
68938d83 18test_fail(+2, 'two');
845d7e37 19
20ok(0,"two");
21
22test_test("test fail");
23
68938d83 24test_fail(+1, 'one');
845d7e37 25ok(0,"one");
26test_test("test_fail first");
27
28# test_diag
29
30use Test::Builder;
68938d83 31my $test = Test::Builder->new();
845d7e37 32
33test_diag("this is a test string","so is this");
34$test->diag("this is a test string\n", "so is this\n");
35test_test("test diag");
36
37test_diag("this is a test string","so is this");
38$test->diag("this is a test string\n");
39$test->diag("so is this\n");
40test_test("test diag multi line");
41
42test_diag("this is a test string");
43test_diag("so is this");
44$test->diag("this is a test string\n");
45$test->diag("so is this\n");
46test_test("test diag multiple");