ktats****@users*****
ktats****@users*****
2013年 11月 12日 (火) 01:30:02 JST
Index: docs/modules/Test-Simple-0.99/lib/Test/More.pod diff -u docs/modules/Test-Simple-0.99/lib/Test/More.pod:1.1 docs/modules/Test-Simple-0.99/lib/Test/More.pod:1.2 --- docs/modules/Test-Simple-0.99/lib/Test/More.pod:1.1 Sun Nov 10 14:17:31 2013 +++ docs/modules/Test-Simple-0.99/lib/Test/More.pod Tue Nov 12 01:30:01 2013 @@ -20,12 +20,26 @@ require_ok( 'Some::Module' ); +=begin original + + # Various ways to say "ok" + ok($got eq $expected, $test_name); + +=end original + # ãokãã¨ç¤ºãããã®ãã¾ãã¾ãªæ¹æ³ ok($got eq $expected, $test_name); is ($got, $expected, $test_name); isnt($got, $expected, $test_name); +=begin original + + # Rather than print STDERR "# here's what went wrong\n" + diag("here's what went wrong"); + +=end original + # STDERR ã«åºåããããã "# here's what went wrong\n" diag("here's what went wrong"); @@ -72,8 +86,11 @@ =end original -B<å¾ ã£ã!>ãããä»åãã¦ããã¹ããæ¸ããã¨ãã¦ããã®ãªããTest::Simpleãã¾ãè¦ã¦ãã ããã -Test::Moreã¯ãåºæ¬çãªãã¹ãã®ã³ããå¾ã¦ãç½®ãæãå¯è½ãªTest::Simpleã®å·®è¾¼å¼ã®ç½®æã§ãã +B<å¾ ã£ã!> +ãããä»åãã¦ããã¹ããæ¸ããã¨ãã¦ããã®ãªããL<Test::Simple>ãã¾ã +è¦ã¦ãã ããã +Test::Moreã¯ãåºæ¬çãªãã¹ãã®ã³ããå¾ã¦ãç½®ãæãå¯è½ãª Test::Simple ã®å·®è¾¼å¼ã® +ç½®æã§ãã =begin original @@ -87,8 +104,10 @@ ãã®ã¢ã¸ã¥ã¼ã«ã®ç®çã¯ãå¤§å¹ ãªãã¹ãã¦ã¼ãã£ãªãã£ãæä¾ãããã¨ã§ãã ãããã診æã§ãokãã¨ç¤ºãæ¹æ³ãç¨æãããããã¹ããç°¡åã«ã¹ããããããã -å°æ¥çãªå®è£ ããã¹ãããããè¤éãªãã¼ã¿æ§é ãæ¯è¼ãããããæ§ã ãªæ©è½ãããã¾ãã -åç´ãªC<ok()>é¢æ°ã§ã»ã¨ãã©å ¨ã¦ã®ãã¨ãåºæ¥ã¾ãããC<ok()>é¢æ°ã¯ãè¯ã診æåºåãæä¾ãã¾ããã +å°æ¥çãªå®è£ ããã¹ãããããè¤éãªãã¼ã¿æ§é ãæ¯è¼ãããããæ§ã ãªæ©è½ã +ããã¾ãã +åç´ãª C<ok()> é¢æ°ã§ã»ã¨ãã©å ¨ã¦ã®ãã¨ãåºæ¥ã¾ãããC<ok()> é¢æ°ã¯ãè¯ã +診æåºåãæä¾ãã¾ããã =head2 I love it when a plan comes together @@ -102,8 +121,9 @@ =end original -ä»ã®ä½ããåã«ããã¹ãã®è¨ç»ãå¿ è¦ã§ãã ã¹ã¯ãªãããè¡ããã¨ãã¦ãããã¹ãã -ããã¤ã§ãããã¨ãããã®åºæ¬çãªå®£è¨ã¯ãåå§çãªå¤±æã«å¯¾ããä¿è·ã«ãªãã¾ãã +ä»ã®ä½ããåã«ããã¹ãã®è¨ç»ãå¿ è¦ã§ãã +ã¹ã¯ãªãããè¡ããã¨ãã¦ãããã¹ããããã¤ã§ãããã¨ãããã®åºæ¬çãªå®£è¨ã¯ã +åå§çãªå¤±æã«å¯¾ããä¿è·ã«ãªãã¾ãã =begin original @@ -111,7 +131,8 @@ =end original -ãã®ä¿è·ãè¡ã好ã¾ããæ¹æ³ã¯ãC<use Test::More> ãæ¸ãæã«ãè¨ç»ã宣è¨ãããã¨ã§ãã +ãã®ä¿è·ãè¡ã好ã¾ããæ¹æ³ã¯ãC<use Test::More> ãæ¸ãæã«ãè¨ç»ã +宣è¨ãããã¨ã§ãã use Test::More tests => 23; @@ -123,7 +144,8 @@ =end original -scriptãè¡ããã¨ãã¦ãããã¹ããããã¤ããããäºåã«ç¥ããªããããªãã¾ããªã±ã¼ã¹ãããã¾ãã +ã¹ã¯ãªãããè¡ããã¨ãã¦ãããã¹ããããã¤ããããäºåã«ç¥ããªããããªãã¾ã㪠+ã±ã¼ã¹ãããã¾ãã ããããã±ã¼ã¹ã§ã¯ãæå¾ã«ãã¹ãã宣è¨ãããã¨ãã§ãã¾ãã @@ -141,7 +163,8 @@ =end original -ããã¤ã®ãã¹ããå®è¡ããããæ¬å½ã«åãããªãæããè¨ç®ããã®ã大å¤ãªæã«ä½¿ãã¾ãã +ããã¤ã®ãã¹ããå®è¡ããããæ¬å½ã«åãããªãæããè¨ç®ããã®ã大å¤ãªæã« +使ãã¾ãã ãã®ãããªã±ã¼ã¹ã§ã¯ã$number_of_tests_run ãçããã¨ãã§ãã¾ãã =begin original @@ -150,7 +173,7 @@ =end original -ããã¤ãã®ã±ã¼ã¹ã§ã¯ããããã¹ãscriptå ¨ã¦ãå®å ¨ã«ã¹ããããããã§ãããã +ããã¤ãã®ã±ã¼ã¹ã§ã¯ããããã¹ãã¹ã¯ãªããå ¨ã¦ãå®å ¨ã«ã¹ããããããã§ãããã use Test::More skip_all => $skip_reason; @@ -162,8 +185,8 @@ =end original -scriptãããªãã¹ãããããã®ãã®çç±ã宣è¨ããã¨ãå³åº§ã«0(æå)ã§çµäºãã¾ãã -詳細ã«ã¤ãã¦ã¯L<Test::Harness>ãã¿ã¦ãã ããã +ã¹ã¯ãªãããããªãã¹ãããããã®ãã®çç±ã宣è¨ããã¨ãå³åº§ã«0(æå)ã§çµäºãã¾ãã +詳細ã«ã¤ãã¦ã¯ L<Test::Harness> ãã¿ã¦ãã ããã =begin original @@ -173,9 +196,9 @@ =end original -Test::Moreãã¨ã¯ã¹ãã¼ãããé¢æ°ãã³ã³ããã¼ã«ããããã°ã -'import'ãªãã·ã§ã³ã使ãå¿ è¦ãããã¾ãã -ãã¨ãã°ã'fail'ãé¤ãã¦ãå ¨ã¦ãã¤ã³ãã¼ãããããªãã次ã®ããã«ãã¾ãï¼ +Test::More ãã¨ã¯ã¹ãã¼ãããé¢æ°ãã³ã³ããã¼ã«ããããã°ã +'import' ãªãã·ã§ã³ã使ãå¿ è¦ãããã¾ãã +ãã¨ãã°ã'fail' ãé¤ãã¦ãå ¨ã¦ãã¤ã³ãã¼ãããããªãã次ã®ããã«ãã¾ãï¼ use Test::More tests => 23, import => ['!fail']; @@ -236,7 +259,7 @@ =end original -$number_of_tests ã¯ãplan()ã¨åãã§ããå®è¡ãããã¨ãã¦ãããã¹ãã®æ°ã§ãã +$number_of_tests ã¯ãplan() ã¨åãã§ããå®è¡ãããã¨ãã¦ãããã¹ãã®æ°ã§ãã ãããçç¥ãããã¨ãã§ãã¾ãããã®å ´åããã¹ãã®æ°ã¯åé¡ã«ãã¾ããã æå¾ã¾ã§ãã¹ããå®è¡ãããããåé¡ã«ãã¾ãã @@ -246,7 +269,7 @@ =end original -"no_plan"ãªè¨ç»ããå®å ¨ã§ã"no_plan"ãç½®ãæãããã®ã§ãã +"no_plan" ãªè¨ç»ããå®å ¨ã§ã"no_plan" ãç½®ãæãããã®ã§ãã =back @@ -266,8 +289,9 @@ =end original 便å®ã®ããã«ãããããã®ãã¹ãã¯ãé çªã«çªå·ãå²ãæ¯ããã¦ãã¾ãã -ããã¯ã主ã«èªåçã«è¡ããã¾ããã§ããããã¹ãã«ååãå²ãå½ã¦ãã¨ã -ã¨ã¦ãæçãªãã¨ãããããã¾ããã©ã¡ããããã§ãããã: +ããã¯ã主ã«èªåçã«è¡ããã¾ãã +ã§ããããã¹ãã«ååãå²ãå½ã¦ãã¨ãã¨ã¦ãæçãªãã¨ãããããã¾ãã +ã©ã¡ããããã§ãããã: ok 4 not ok 5 @@ -294,7 +318,7 @@ =end original å¾è ã¯ãä½ã失æãããã®æããããä¸ãã¦ããã¾ãã -ã¾ããscriptä¸ã®ãã¹ããè¦ã¤ãããããªãããç°¡åãªææ°é¢æ°ãã楽ã«æ¢ãã¾ãã +ã¾ããã¹ã¯ãªããä¸ã®ãã¹ããè¦ã¤ãããããªãããç°¡åãªææ°é¢æ°ãã楽ã«æ¢ãã¾ãã =begin original @@ -303,11 +327,13 @@ =end original -å ¨ã¦ã®ãã¹ãã®é¢æ°ã¯ãååãå¼æ°ã«ã¨ãã¾ããååã®å¼æ°ã¯ããªãã·ã§ãã«ã§ã¯ããã¾ããã -使ããã¨ãå¼·ãæ¨å¥¨ããã¦ãã¾ãã +å ¨ã¦ã®ãã¹ãã®é¢æ°ã¯ãååãå¼æ°ã«ã¨ãã¾ãã +ååã®å¼æ°ã¯ããªãã·ã§ãã«ã§ã¯ããã¾ããã使ããã¨ãå¼·ãæ¨å¥¨ããã¦ãã¾ãã =head2 I'm ok, you're not ok. +(ãããã¯ãOK ãããªãã¯ãã ã) + =begin original The basic purpose of this module is to print out either "ok #" or "not @@ -317,7 +343,8 @@ =end original ãã®ã¢ã¸ã¥ã¼ã«ã®åºæ¬çãªç®çã¯ãä¸ãããã¹ããã失æããããæåãããã§ã -ãok çªå·ããããnot ok çªå·ãã®ã©ã¡ãããåºåãããã¨ã§ããä»ã®å ¨ã¦ã¯ããã ã®ãã¾ãã§ãã +ãok çªå·ããããnot ok çªå·ãã®ã©ã¡ãããåºåãããã¨ã§ãã +ä»ã®å ¨ã¦ã¯ããã ã®ãã¾ãã§ãã =begin original @@ -327,7 +354,8 @@ =end original -ãã®ä¸ã«æ¸ãã¦ãããã®ã¯å ¨ã¦ããã¹ããæåããã失æãããã©ããã«ãã£ã¦ããokãããnot okãã表示ãã¾ãã +ãã®ä¸ã«æ¸ãã¦ãããã®ã¯å ¨ã¦ããã¹ããæåããã失æãããã©ããã«ãã£ã¦ã +ãokãããnot okãã表示ãã¾ãã ãããã¯ãå ¨ã¦ãããããçãå½ãè¿ãã¾ãã =over 4 @@ -379,10 +407,11 @@ =end original -C<$test_name>ã¯ãã¨ã¦ãçããã¹ãã®èª¬æã§ãå®è¡æã«åºåããã¾ãã -$test_nameã¯ããã¹ãã失æããå ´åã«ãscriptä¸ã®ãã¹ããã¨ã¦ãè¦ã¤ãããããã¾ãã -ããã«ãä»ã®äººã«ãããªãã®æå³ããèããä¼ãã¾ãã$test_nameã¯ãã¯ããªãã·ã§ãã«ã§ããã -使ããã¨ãå¼·ãå§ãããã¦ãã¾ãã +$test_name ã¯ãã¨ã¦ãçããã¹ãã®èª¬æã§ãå®è¡æã«åºåããã¾ãã +$test_name ã¯ããã¹ãã失æããå ´åã«ãã¹ã¯ãªããä¸ã®ãã¹ããã¨ã¦ã +è¦ã¤ãããããã¾ãã +ããã«ãä»ã®äººã«ãããªãã®æå³ããèããä¼ãã¾ãã$test_name ã¯ã +ãªãã·ã§ã³ã§ããã使ããã¨ãå¼·ãå§ãããã¦ãã¾ãã =begin original @@ -390,7 +419,7 @@ =end original -ä¸ä¸ãok()ã失æããå ´åãã¡ãã£ã¨ãã診æãæä¾ãã¾ã: +ä¸ä¸ãok() ã失æããå ´åãã¡ãã£ã¨ãã診æãæä¾ãã¾ã: not ok 18 - sufficient mucus # Failed test 'sufficient mucus' @@ -402,7 +431,7 @@ =end original -ããã¯ãTest::Simpleã®C<ok()> ã«ã¼ãã³ã¨åãã§ãã +ããã¯ãTest::Simple ã® C<ok()> ã«ã¼ãã³ã¨åãã§ãã =item B<is> @@ -419,8 +448,9 @@ =end original -ok() 㨠is() 㨠isnt() ã®é¡ä¼¼ç¹ã¯ãäºã¤ã®å¼æ°ãããããC<eq> 㨠C<ne>ã§æ¯è¼ãã -ãã®çµæã使ã£ã¦ããã¹ããæåãããã失æãããã決ãããã¨ã§ããããã§ããããã¯ï¼ +ok() 㨠is() 㨠isnt() ã®é¡ä¼¼ç¹ã¯ãäºã¤ã®å¼æ°ãããããC<eq> 㨠C<ne> 㧠+æ¯è¼ãããã®çµæã使ã£ã¦ããã¹ããæåãããã失æãããã決ãããã¨ã§ãã +ããã§ããããã¯ï¼ # Is the ultimate answer 42? is( ultimate_answer(), 42, "Meaning of Life" ); @@ -459,7 +489,7 @@ =end original -(è¦ãæ¹: "This is that." "This isn't that.") +(è¦ããã: "This is that." "This isn't that.") =begin original @@ -470,9 +500,10 @@ =end original -ã©ããã¦ãããã使ãã®ã§ãããï¼ is() 㨠isnt() ã¯ã失æã«é¢ãã¦ããããã診æãã ãã¾ãã -ok()ã¯ã(åå以ä¸ã«ã¯)ä½ã®ããã«ãã¹ãããã¦ããã®ãç¥ããã¨ãåºæ¥ã¾ãããã -is()ã¨isnt()ã¯ããã¹ããä½ã§ããã¹ãããªã失æããããç¥ã£ã¦ãã¾ãã +ã©ããã¦ãããã使ãã®ã§ãããï¼ +is() 㨠isnt() ã¯ã失æã«é¢ãã¦ããããã診æãã ãã¾ãã +ok() ã¯ã(åå以ä¸ã«ã¯)ä½ã®ããã«ãã¹ãããã¦ããã®ãç¥ããã¨ãåºæ¥ã¾ãããã +is() 㨠isnt() ã¯ããã¹ããä½ã§ããã¹ãããªã失æããããç¥ã£ã¦ãã¾ãã ãã¨ãã°ãã®ãã¹ãï¼ my $foo = 'waffle'; my $bar = 'yarblokos'; @@ -524,7 +555,7 @@ =end original ãã®ã³ã¼ãã¯ãC<exsits $brooklyn{tree}> ãçã§ãããã©ããããã§ãã¯ãã¾ããã -ãã®ã³ã¼ãã¯ã1ãè¿ããã©ããããã§ãã¯ãã¾ãããããã¯ã¾ã£ããéãã¾ãã +ãã®ã³ã¼ãã¯ã1 ãè¿ããã©ããããã§ãã¯ãã¾ãããããã¯ã¾ã£ããéãã¾ãã ä¼¼ããããªè¦åã¯ãå½ ã¨ 0 ã«ãå¨ãã¾ããããããã±ã¼ã¹ã§ã¯ãok() ã使ãã¾ãã ok( exists $brooklyn{tree}, 'A tree grows in Brooklyn' ); @@ -556,7 +587,7 @@ =end original -ææ³å¦è ã¶ã人ã®ããã«ãæ¸ãã¦ããã¨ãC<isn't()> é¢æ°ã¯ isnt()é¢æ°ã® +ææ³å¦è ã¶ã人ã®ããã«ãæ¸ãã¦ããã¨ãC<isn't()> é¢æ°ã¯ isnt() é¢æ°ã® ã¨ã¤ãªã¢ã¹ã¨ãã¦åå¨ãã¦ã¾ãã =item B<like> @@ -569,7 +600,8 @@ =end original -ok() ã¨ä¼¼ã¦ãã¾ãããlike() ã¯ã å¼æ°ã®$gotãæ£è¦è¡¨ç¾ã®C<qr/expected/>ã«ãããããã¾ãã +ok() ã¨ä¼¼ã¦ãã¾ãããlike() ã¯ã å¼æ°ã®$gotãæ£è¦è¡¨ç¾ã® C<qr/expected/> ã« +ãããããã¾ãã =begin original @@ -610,7 +642,8 @@ äºçªç®ã®å¼æ°ã¯æ£è¦è¡¨ç¾ã§ããæ£è¦è¡¨ç¾ã®ãªãã¡ã¬ã³ã¹ (ãã¨ãã°ãC<qr//>)ãã(å¤ãPerlã¨ãããäºææ§ãæããããªã) -æ£è¦è¡¨ç¾ã«è¦ããæåå(代æ¿ã®åºåãã¯ãç¾å¨ãµãã¼ãããã¦ãã¾ãã)ã¨ãã¦ä¸ãããã¾ãã +æ£è¦è¡¨ç¾ã«è¦ããæåå(代æ¿ã®åºåãã¯ãç¾å¨ãµãã¼ãããã¦ãã¾ãã)ã¨ã㦠+ä¸ãããã¾ãã like( $got, '/expected/', 'this is like that' ); @@ -629,7 +662,7 @@ =end original -ok()ã¨æ¯ã¹ãã¨ãã®å©ç¹ã¯ãis() 㨠isnt()ã®å©ç¹ã«ä¼¼ã¦ãã¾ãã +ok() ã¨æ¯ã¹ãã¨ãã®å©ç¹ã¯ãis() 㨠isnt() ã®å©ç¹ã«ä¼¼ã¦ãã¾ãã 失æã«é¢ãã¦ããã診æãã¾ãã =item B<unlike> @@ -659,8 +692,9 @@ =end original C<ok()> 㨠C<is()> ã®ä¸éã« C<cmp_ok()> ãããã¾ãã -ããã¯ããã¹ã¦ã®ãã¤ããªã®Perlã®æ¼ç®åã使ã£ã¦ãäºã¤ã®å¼æ°ãæ¯è¼ãããã¨ã許ãã¾ãã -The test passes if the comparison is true and fails otherwise. +ããã¯ããã¹ã¦ã®ãã¤ããªã®Perlã®æ¼ç®åã使ã£ã¦ã2ã¤ã®å¼æ°ãæ¯è¼ãããã¨ã +ã§ãã¾ãã +æ¯è¼ãçã§ããã°ããã¹ãã¯ãã¹ãããããªããã°ã失æãã¾ãã # ok( $got eq $expected ); cmp_ok( $got, 'eq', $expected, 'this eq that' ); @@ -679,7 +713,7 @@ =end original -ok()ã¨æ¯ã¹ãã¨ãã® cmp_ok ã® å©ç¹ã¯ããã¹ãã失æããã¨ãã«ã +ok() ã¨æ¯ã¹ãã¨ãã® cmp_ok ã® å©ç¹ã¯ããã¹ãã失æããã¨ãã«ã $got 㨠$expected ãä½ããããããã¨ã§ãã not ok 1 @@ -695,7 +729,8 @@ =end original -cmp_ok ã¯ãæ°ãæ¯è¼ããéããis() ã eq ã¨ãã¦ä½¿ããã¨ããå¹²æ¸ããéã«ãæçã§ããã: +cmp_ok ã¯ãæ°ãæ¯è¼ããéããis() ã C<eq> ã¨ãã¦ä½¿ããã¨ããå¹²æ¸ããéã«ã +æçã§ããã: cmp_ok( $big_hairy_number, '==', $another_big_hairy_number ); @@ -724,7 +759,8 @@ =end original -$module ã $object ã è¤æ°ã®ã¡ã½ãã(ã¾ãã¯ãé¢æ°)@methodsãå®è¡ã§ãããããã§ãã¯ãã¾ãã +$module ã $object ã è¤æ°ã®ã¡ã½ãã(ã¾ãã¯ãé¢æ°)@methodsãå®è¡ã§ãããã +ãã§ãã¯ãã¾ãã can_ok('Foo', qw(this that whatever)); @@ -781,7 +817,7 @@ =end original -C<< $object->isa($class) >>ãä¸ãããã¦ãããã©ãããè¦ãããã®ãã§ãã¯ã +C<< $object->isa($class) >> ãä¸ãããã¦ãããã©ãããè¦ãããã®ãã§ãã¯ã ãªãã¸ã§ã¯ããæåã®å ´æã§å®ç¾©ããã¦ããã確ãããããã®ãã§ãã¯ã§ãããã¾ãã my $obj = Some::Module->new; @@ -804,7 +840,7 @@ =end original -ãã¹ãscriptããå¹ã£é£ã¶ã®ãé²ãããã®ã»ã¼ãã¬ã¼ãã§ãã +ãã¹ãã¹ã¯ãªããããå¹ã£é£ã¶ã®ãé²ãããã®ã»ã¼ãã¬ã¼ãã§ãã =begin original @@ -812,7 +848,8 @@ =end original -ã¯ã©ã¹ããã¹ãã§ãã¾ããæ£ããå ç¥ã確ããã¾ãã +ã¯ã©ã¹ããã¹ãã§ãã¾ãã +æ£ããå ç¥ã確ããã¾ãã isa_ok( 'Vole', 'Rodent' ); @@ -851,7 +888,7 @@ =end original -ãªãã¸ã§ã¯ããä½ãã ãã®ãªãã¸ã§ã¯ãã§ãisa_ok() ã®å¼ã³åºãããã£ã¤ãã +ãªãã¸ã§ã¯ããä½ãããã®ãªãã¸ã§ã¯ãã§ãisa_ok() ã®å¼ã³åºãããã£ã¤ãã 便å©ãªé¢æ°ã§ãã =begin original @@ -871,7 +908,7 @@ =end original - @ argsãä¸ããããªããã°ã空ã®ãªã¹ãã使ããã¾ãã + @ args ãä¸ããããªããã°ã空ã®ãªã¹ãã使ããã¾ãã =begin original @@ -880,7 +917,7 @@ =end original -ãã®é¢æ°ã¯ã new() ã§ã®ã¿åããnew()ããC<$class>㨠isa ã§ãã +ãã®é¢æ°ã¯ã new() ã§ã®ã¿åããnew() ããC<$class> 㨠isa ã§ãã ä¸ã¤ã®ãªãã¸ã§ã¯ããè¿ããã¨ãæ³å®ãã¦ãã¾ãã @@ -898,7 +935,8 @@ =end original -subtest() &code ãããèªèº«ã®è¨ç»ã¨çµæããã¤ããèªèº«å°ããªãã¹ãã¨ãã¦ãå®è¡ãã¾ãã +subtest() &code ãããèªèº«ã®è¨ç»ã¨çµæããã¤ããèªèº«å°ããªãã¹ãã¨ãã¦ã +å®è¡ãã¾ãã ã¡ã¤ã³ã®ãã¹ãã¯ä¸ã¤ã®ãã¹ãã¨ãã¦ã«ã¦ã³ããã¾ãã ãµããã¹ãå ¨ä½ã®çµæã使ã£ã¦ãok ã not ok ã決å®ãã¾ãã @@ -947,8 +985,8 @@ =end original -subtestã¯ã"skip_all"ãå¼ãã§ããã¾ãã¾ããããã¹ãã¯å®è¡ããã¾ãããã -subtest 㯠skip ãããã¨èãããã¾ãã +subtest ã¯ã"skip_all" ãå¼ãã§ããã¾ãã¾ããã +ãã¹ãã¯å®è¡ããã¾ããããsubtest 㯠skip ãããã¨èãããã¾ãã subtest 'skippy' => sub { plan skip_all => 'cuz I said so'; @@ -1009,9 +1047,10 @@ =end original æã«ã¯ããã ããã¹ãããã¹ããã¨ç¤ºãããã§ãããã -æ®éããã®ã±ã¼ã¹ã¯ãok()ã«ãæ¼ãè¾¼ããã¨ãé£ããè¤éãªæ¡ä»¶ã«ãªã£ã¦ãã¾ãã -ããããå ´åãåç´ã«pass()(ãã¹ããokã§ããã¨å®£è¨ããããã«)ããfail(not ok ã®ããã«) -ãã使ãã¾ãããããã¯ãok(1)ã¨ãok(0)ã®åæèªã§ãã +æ®éããã®ã±ã¼ã¹ã¯ãok() ã«ãæ¼ãè¾¼ããã¨ãé£ããè¤éãªæ¡ä»¶ã«ãªã£ã¦ãã¾ãã +ããããå ´åãåç´ã« pass() (ãã¹ãã ok ã§ããã¨å®£è¨ããããã«)ãã +fail (not ok ã®ããã«)ãã使ãã¾ãã +ãããã¯ãok(1) ã¨ãok(0) ã®åæèªã§ãã =begin original @@ -1048,7 +1087,7 @@ =end original -ãã®ãããªç®çã®ããã«ãC<use_ok>ã¨ãC<require_ok>ãããã¾ãã +ãã®ãããªç®çã®ããã«ãC<use_ok> ã¨ãC<require_ok> ãããã¾ãã =over 4 @@ -1075,7 +1114,7 @@ =end original -C<require_ok>ã¯ãå ¥åãã¢ã¸ã¥ã¼ã«åããã¡ã¤ã«åãã®ã©ã¡ãããã«æ¨æ¸¬ãã¾ãã +C<require_ok> ã¯ãå ¥åãã¢ã¸ã¥ã¼ã«åããã¡ã¤ã«åãã®ã©ã¡ãããã«æ¨æ¸¬ãã¾ãã =begin original @@ -1111,7 +1150,7 @@ =end original -C<require_ok>ã¨ä¼¼ã¦ãã¾ããã$module ã C<use>ãã¾ãã +C<require_ok> ã¨ä¼¼ã¦ãã¾ããã$module ã C<use> ãã¾ãã ã¢ã¸ã¥ã¼ã«ã®ã¿ããã¼ããããã¡ã¤ã«ã¯è¡ãã¾ããã =begin original @@ -1141,7 +1180,8 @@ =end original BEGIN ãããã¯å ã§ãuse_ok() ãèµ°ããããã¨ãæ¨å¥¨ãã¾ãã -ããã«ããããã®é¢æ°ã¯ãã³ã³ãã¤ã«æã«exportããããããã¿ã¤ããé©åã«åãåãã¾ãã +ããã«ããããã®é¢æ°ã¯ãã³ã³ãã¤ã«æã« export ããã +ãããã¿ã¤ããé©åã«åãåãã¾ãã =begin original @@ -1207,8 +1247,8 @@ =end original -C<use Foo ()>ã¨åçã®ãã®ãã»ãããã°ã,ã¢ã¸ã¥ã¼ã«ã使ãããã©ã -ä½ãã¤ã³ãã¼ãããªããC<require_ok>ã使ã£ã¦ãã ããã +C<use Foo ()> ã¨åçã®ãã®ãã»ãããã°ã,ã¢ã¸ã¥ã¼ã«ã使ãããã©ã +ä½ãã¤ã³ãã¼ãããªããC<require_ok> ã使ã£ã¦ãã ããã BEGIN { require_ok "Foo" } @@ -1229,9 +1269,9 @@ =end original -å ¨ã¦ããåç´ãªeq ãã§ãã¯ããæ£è¦è¡¨ç¾ ã§ã¯ããã¾ããã +å ¨ã¦ããåç´ãª eq ãã§ãã¯ããæ£è¦è¡¨ç¾ã§ã¯ããã¾ããã ãã¨ãã°ãäºã¤ã®é åãã¤ã³ã¼ã«ã§ãããã©ãããè¦ãå¿ è¦ãããã¨ããããã¾ãã -ãããã£ãä¾ã®ããã«ãTest::Moreã¯ãã¡ãã£ã¨ããæçãªé¢æ°ãæä¾ãã¦ãã¾ãã +ãããã£ãä¾ã®ããã«ãTest::More ã¯ãã¡ãã£ã¨ããæçãªé¢æ°ãæä¾ãã¦ãã¾ãã =begin original @@ -1239,7 +1279,7 @@ =end original -B<注æ>ãã¡ã¤ã«ãã³ãã«ã«ã¤ãã¦èµ·ãããã¨ã«ã¤ãã¦ããã¾ã確信ãããã¾ããã +B<注æ> ãã¡ã¤ã«ãã³ãã«ã«ã¤ãã¦èµ·ãããã¨ã«ã¤ãã¦ããã¾ã確信ãããã¾ããã =over 4 @@ -1256,9 +1296,10 @@ =end original -is()ã¨ä¼¼ã¦ãã¾ããã$got 㨠$expectedãããªãã¡ã¬ã³ã¹ã§ãã -ããããã®ãã¼ã¿ã®æ§é ãè¦ã¦ã¾ãããããããããã¤ã³ã¼ã«ãã©ãããæ·±ãæ¯è¼ããã¾ãã -äºã¤ã®æ§é ãéã£ã¦ããã°ãäºã¤ãéãå§ããå ´æã示ãã¾ãã +is() ã¨ä¼¼ã¦ãã¾ããã$got 㨠$expected ãããªãã¡ã¬ã³ã¹ã§ãã +ããããã®ãã¼ã¿ã®æ§é ãè¦ã¦ã¾ãããããããããã¤ã³ã¼ã«ãã©ãããæ·±ãæ¯è¼ã +ãã¾ãã +2ã¤ã®æ§é ãéã£ã¦ããã°ã2ã¤ãéãå§ããå ´æã示ãã¾ãã =begin original @@ -1270,7 +1311,7 @@ is_deeply() ã¯ããªãã¡ã¬ã³ã¹ã®å¤ã®éããæ¯è¼ãã¾ãã ãªãã¡ã¬ã³ã¹ããèªèº«(ãã®åãã®ãã)ã¯ç¡è¦ããã¾ãã -ã¤ã¾ããblessã tie ã®ãããªå´é¢ã¯ã"éã"ã¨èãããã¾ããã +ã¤ã¾ããbless ã tie ã®ãããªå´é¢ã¯ã"éã"ã¨èãããã¾ããã =begin original @@ -1280,8 +1321,9 @@ =end original -is_deeply() ã¯ãä»ã®ã¨ãããé¢æ°ãªãã¡ã¬ã³ã¹ã¨globã®ãã³ããªã³ã°ã¯ -é常ã«éå®çã§ããåç´ã«ãåã referent ãæã£ã¦ãããããã§ãã¯ãã¾ãã +is_deeply() ã¯ãä»ã®ã¨ãããé¢æ°ãªãã¡ã¬ã³ã¹ã¨ glob ã®ãã³ããªã³ã°ã¯ +é常ã«éå®çã§ãã +åç´ã«ãåã referent ãæã£ã¦ãããããã§ãã¯ãã¾ãã å°æ¥æ¹åãããããããã¾ããã =begin original @@ -1291,7 +1333,8 @@ =end original -L<Test::Differences>ã¨L<Test::Deep>ã¯ããããå¾¹åºçãªæ©è½æ§ãæä¾ãã¦ãã¾ãã +L<Test::Differences> 㨠L<Test::Deep> ã¯ããããå¾¹åºçãªæ©è½æ§ã +æä¾ãã¦ãã¾ãã =cut @@ -1312,8 +1355,8 @@ =end original æ£ãããã¹ãé¢æ°ãé¸ãã ãªãããµã¤ãããã®ãã¹ãé¢æ°ã失æããå ´åã«ã -ä½ãééã£ã¦ãããã«ã¤ãã¦ããæ å ±ãå¾ããã¨ãã§ããã§ããããã§ãããæã«ã -ãããã風ã«ã¯ããã¾ãåããªããã¨ãããã¾ãã +ä½ãééã£ã¦ãããã«ã¤ãã¦ããæ å ±ãå¾ããã¨ãã§ããã§ãããã +ã§ãããæã«ããããã風ã«ã¯ããã¾ãåããªããã¨ãããã¾ãã ãã®ããã«ãèªåã§èªåèªèº«ã®è¨ºæã¡ãã»ã¼ã¸ãæ¸ãæ¹æ³ãããã¾ãã C<print STDERR> ããããå®å ¨ã§ãã @@ -1489,7 +1532,7 @@ =end original -skip 㨠todo ãã¹ãã®æ©æ§ã®è©³ç´°ã¯ãC<Test::Harness>ãè¦ã¦ä¸ããã +skip 㨠todo ãã¹ãã®æ©æ§ã®è©³ç´°ã¯ãC<Test::Harness> ãè¦ã¦ä¸ããã =begin original @@ -1499,7 +1542,7 @@ =end original -ååã®ã¤ãããããã¯ã¨ä¸ç·ã«ããTest::More ãã³ãã«ã®ä½¿ãæ¹ã +ååã®ã¤ãããããã¯ã¨ä¸ç·ã«ãã Test::More ãã³ãã«ã®ä½¿ãæ¹ã åºæ¬çã«ãã¹ãã®ãããã¯ã¯ãã¹ããããããããtodo ã«ãããã§ãã ãã ã³ã¼ããè¦ããã®ãæåã§ããã⦠@@ -1522,7 +1565,7 @@ =end original ããã¯ãã¹ããããããã¹ãã®ãããã¯ã宣è¨ãã¾ãã -$how_many ã¯ãã¹ãã®æ°ã $why ã¯çç±ã$conditionã¯ã +$how_many ã¯ãã¹ãã®æ°ã $why ã¯çç±ã$condition ã¯ã ã©ãããæ¡ä»¶ã§ããããã®ãã¹ããã¹ãããããã®ããæå³ãã¾ãã æãç°¡åãªä¾ãè¦ãã¾ãï¼ @@ -1560,8 +1603,9 @@ =end original ãã¹ãã®æ°ããè¨ç»ã«ãããããããã«ã -$how_many ãæ£ããSKIP ãããã¯ã®ä¸ã®ãã¹ãã®æ°ãåæ ãããã¨ã¯éè¦ã§ãã -ãããè¨ç»ãC<no_plan>ã§ããã°ã$how_many ã¯ãªãã·ã§ã³ã§ãããã©ã«ãã¯1ã«ãªãã¾ãã +$how_many ãæ£ãã SKIP ãããã¯ã®ä¸ã®ãã¹ãã®æ°ãåæ ãããã¨ã¯éè¦ã§ãã +ãããè¨ç»ã C<no_plan> ã§ããã°ã$how_many ã¯ãªãã·ã§ã³ã§ãããã©ã«ã㯠+1 ã«ãªãã¾ãã =begin original @@ -1570,8 +1614,9 @@ =end original -ãã¹ãããSKIPãããã¯ã¯å®å ¨ã«å®å ¨ã§ããããããã®SKIPãããã¯ã«ã¯ã -C<SKIP>ã©ãã«ããªããã°ãªãã¾ãããããããªãã¨ãTest::Moreã¯ããã®éæ³ããã¾ã使ãã¾ããã +ãã¹ããã SKIP ãããã¯ã¯å®å ¨ã«å®å ¨ã§ããããããã® SKIP ãããã¯ã«ã¯ã +C<SKIP> ã©ãã«ããªããã°ãªãã¾ãããããããªãã¨ãTest::More ã¯ããã®éæ³ã +ãã¾ã使ãã¾ããã =begin original @@ -1581,7 +1626,8 @@ =end original -失æãããã¹ããã¹ããããã¦ã¯ããã¾ããã失æããã®ã¯ãããã°ã©ã ã«ãã°ãããããã§ããã +失æãããã¹ããã¹ããããã¦ã¯ããã¾ããã +失æããã®ã¯ãããã°ã©ã ã«ãã°ãããããã§ããã ããã§ãªããã°ãã¾ã ã³ã¼ããæ¸ãã¦ããªãããã§ãã TODO ã®ä½¿ãæ¹ãæ¸ãã®ã§ãèªã¿ç¶ãã¦ãã ããã @@ -1625,11 +1671,12 @@ =end original -todoãããã¯ã§ã¯ããã®ä¸ã®ãã¹ãã¯ã失æããã¨äºæããã¾ããTest::More ã¯ã -æ®éã«ãã¹ããè¡ãã¾ãããç¹å¥ãªãã©ã°ãåºåããããã®ãã¹ãããtodoãã§ãããã¨ã示ãã¾ãã +todoãããã¯ã§ã¯ããã®ä¸ã®ãã¹ãã¯ã失æããã¨äºæããã¾ãã +Test::More ã¯ãæ®éã«ãã¹ããè¡ãã¾ãããç¹å¥ãªãã©ã°ãåºåããããã®ãã¹ãã +ãtodoãã§ãããã¨ã示ãã¾ãã Test::Harness ã¯ããã®å¤±æã ok ã§ããã¨è§£éãã¾ãã ãªãã§ãæåã«ããäºæããªãæåã¨ãå ±åãã¾ãã -todoã解æ¶ãããã¨åãã£ãããTODOãã©ã°ãå¤ããã¨ãåºæ¥ã¾ãã +todo ã解æ¶ãããã¨åãã£ãããTODO ãã©ã°ãå¤ããã¨ãåºæ¥ã¾ãã =begin original @@ -1640,9 +1687,11 @@ =end original -todo ãã¹ãã®è¯ãã¨ããã¯ããã¹ãã®ãããã¯ãåç´ã«ã³ã¡ã³ãã¢ã¦ããããã¨ã§ã¯ãªãã -ããã°ã©ãçãªtodoãªã¹ãã§ããããã«ãªããã¨ã§ãã -ã©ããããããã¹ãä»äºãæ®ã£ã¦ããã®ãåããããã©ã®ãããªãã°ãããã®ããæ°ä»ãã¾ãã +todo ãã¹ãã®è¯ãã¨ããã¯ããã¹ãã®ãããã¯ãåç´ã« +ã³ã¡ã³ãã¢ã¦ããããã¨ã§ã¯ãªãã +ããã°ã©ãç㪠todo ãªã¹ãã§ããããã«ãªããã¨ã§ãã +ã©ããããããã¹ãä»äºãæ®ã£ã¦ããã®ãåããããã©ã®ãããªãã°ãããã®ãã +æ°ä»ãã¾ãã ã¾ãããããã®ãã¹ããä¿®æ£ãããå ´åãå³åº§ã«èå¥ãããã¨ãåºæ¥ãã§ãããã =begin original @@ -1652,7 +1701,8 @@ =end original -ä¸åº¦ãtodoãã¹ããæåãå§ããã¨ãåç´ã«ããããã¯ã®å¤å´ã«todoãã¹ãã移ãã¾ãã +ä¸åº¦ãtodo ãã¹ããæåãå§ããã¨ãåç´ã«ããããã¯ã®å¤å´ã« todo ãã¹ãã +移ãã¾ãã ãããã¯ã空ãªããåé¤ãã¾ãã =item B<todo_skip> @@ -1676,9 +1726,11 @@ todo ãã¹ãã§ã¯ãå®éã«ãã¹ãããªãã¹ãèµ°ããããã¨ãã¾ãã ãã®ããã«ããããã®ãã¹ãããã¤ééãå§ããããç¥ãã§ãããã ãããããã¨ããå¯è½ã§ãªãæãããã¾ãã -失æãããã¹ãã¯å ¨ã¦ã®ããã°ã©ã ãæ»ã¬ãããã³ã°ããåå ã«ãªããã¨ãããããã¾ãã -C<eval BLOCK>ã®å å´ã§ãC<alarm>ã使ã£ã¦ãã -ãã®ãããªæ¥µç«¯ãªã±ã¼ã¹ã§ã¯ãå£ãããã¹ããå®å ¨ã«ã¹ããããã以å¤ã«ã¯ãé¸æã®ä½å°ã¯ããã¾ããã +失æãããã¹ãã¯å ¨ã¦ã®ããã°ã©ã ãæ»ã¬ãããã³ã°ããåå ã«ãªããã¨ã +ããããã¾ãã +C<eval BLOCK> ã®å å´ã§ãC<alarm> ã使ã£ã¦ãã +ãã®ãããªæ¥µç«¯ãªã±ã¼ã¹ã§ã¯ãå£ãããã¹ããå®å ¨ã«ã¹ããããã以å¤ã«ã¯ã +é¸æã®ä½å°ã¯ããã¾ããã =begin original @@ -1689,7 +1741,7 @@ =end original todoã§ã¯ãªããã¹ãã失æã¨ãã¦ãã¼ã¯ããã以å¤ã¯ã -æ§æãæ¯ãèããC<SKIP: BLOCK>ã«ä¼¼ã¦ãã¾ãã +æ§æãæ¯ãèãã C<SKIP: BLOCK> ã«ä¼¼ã¦ãã¾ãã Test::Harness ã¯ããã¹ãã«åæ ¼ãã¦ããã¨è§£éãã¾ãã =item When do I use SKIP vs. TODO? @@ -1705,10 +1757,11 @@ =end original -B<ãããã¦ã¼ã¶ãåºæ¥ããã«ãªãã¨ãã«ã¯>ãSKIPã使ã£ã¦ãã ããã +B<ãããã¦ã¼ã¶ãåºæ¥ããã«ãªãã¨ãã«ã¯>ãSKIP ã使ã£ã¦ãã ããã ããã«ã¯ãã¤ã³ã¹ãã¼ã«ããã¦ããªããªãã·ã§ãã«ãªã¢ã¸ã¥ã¼ã«ãã -(fork()ãsymlinksãªã©ã®)æ©è½ãæã£ã¦ããªãOSã§å®è¡ãããã¨ãã -ã¤ã³ã¿ã¼ãããæ¥ç¶ãå¿ è¦ã¨ãã¦ããã®ã«ããããã¦ã¼ã¶ãå©ç¨ã§ããªããã¨ãå«ã¿ã¾ãã +(fork() ã symlinks ãªã©ã®)æ©è½ãæã£ã¦ããªã OS ã§å®è¡ãããã¨ãã +ã¤ã³ã¿ã¼ãããæ¥ç¶ãå¿ è¦ã¨ãã¦ããã®ã«ããããã¦ã¼ã¶ã +å©ç¨ã§ããªããã¨ãå«ã¿ã¾ãã =begin original @@ -1719,7 +1772,7 @@ =end original B<ãããããã°ã©ããã¾ã ããã£ã¦ããªãã¨ãã«ã¯>ãTODO ã使ã£ã¦ãã ããã -ããã¯ããã¹ãscriptã«ããã¹ããç½®ããã(常ã«ããèãã§ã)ããã©ãã +ããã¯ããã¹ãã¹ã¯ãªããã«ããã¹ããç½®ããã(常ã«ããèãã§ã)ããã©ãã ã¾ã æ¸ãã¦ããªãã³ã¼ãããã¾ã ç´ãã¦ããªããã°ãªã©ã§ãã =back @@ -1742,7 +1795,8 @@ =end original -æ²æ¨ãªãªãã¨ã«ãªã£ãããããã¹ã¦ã®ãã¹ããçµäºãããããã«ãharnessã«ä¼ãã¾ãã +æ²æ¨ãªãªãã¨ã«ãªã£ãããããã¹ã¦ã®ãã¹ããçµäºãããããã«ãharness ã« +ä¼ãã¾ãã ããã¯ãã©ããªè¿½å ã®ãã¹ãã¹ã¯ãªããã®å®è¡ãå«ã¿ã¾ãã =begin original @@ -1763,11 +1817,11 @@ =end original -ãã¹ãã¯255ã§çµäºãã¾ãã +ãã¹ã㯠255 ã§çµäºãã¾ãã For even better control look at L<Test::Most>. -L<Test::Most>ã«ãããããå¶å¾¡ãããã¾ãã +L<Test::Most> ã«ãããããå¶å¾¡ãããã¾ãã =cut @@ -1789,7 +1843,8 @@ =end original -ä¸è¨ã®é¢æ°ã®ä½¿ç¨ã¯æ¨å¥¨ããã¾ããããããã¯ãå®éã«ã¯ãã¹ãé¢æ°ã§ã¯ãªãã +ä¸è¨ã®é¢æ°ã®ä½¿ç¨ã¯æ¨å¥¨ããã¾ããã +ãããã¯ãå®éã«ã¯ãã¹ãé¢æ°ã§ã¯ãªãã ä½ãééã£ã¦ããããçªãæ¢ããå©ãã¨ãªã診æã¯æä¾ãã¾ããã is_deeply() ãã§ããããåã«æ¸ãããé¢æ°ã§ã2ã¤ã®ä»»æã®ãã¼ã¿æ§é ã® éãã表示ããæå¹ãªæ¹æ³ãèãä»ããã¨ãåºæ¥ãªãã£ãããã§ãã @@ -1831,7 +1886,8 @@ =end original -äºã¤ã®é åãã¤ã³ã¼ã«ãã©ããããã§ãã¯ãã¾ããããã¯ãæ·±ããã§ãã¯ã§ããã +2ã¤ã®é åãã¤ã³ã¼ã«ãã©ããããã§ãã¯ãã¾ãã +ããã¯ãæ·±ããã§ãã¯ã§ããã ãã«ãã¬ãã«ã®æ§é ãæ£ç¢ºã«æ±ããã¾ãã =item B<eq_hash> @@ -1860,8 +1916,9 @@ =end original -eq_array() ã¨ã«ã¦ãã¾ãããè¦ç´ ã®é çªã¯éè¦ã§ã¯ããã¾ããã -ããã¯ãæ·±ããã§ãã¯ã§ãããé çªã®ä¸æ´åã¯ããããã¬ãã«ã«ããé©ç¨ããã¾ããã +eq_array() ã¨ä¼¼ã¦ãã¾ãããè¦ç´ ã®é çªã¯éè¦ã§ã¯ããã¾ããã +ããã¯ãæ·±ããã§ãã¯ã§ãããé çªã®ä¸æ´åã¯ããããã¬ãã«ã«ãã +é©ç¨ããã¾ããã ok( eq_set(\@got, \@expected) ); @@ -1882,7 +1939,8 @@ =end original -B<注æ>ãæ´å²çãªé½åã«ãããããã¯ãæ¬å½ã® set ã®æ¯è¼ã§ã¯ããã¾ããã +B<注æ> +æ´å²çãªé½åã«ãããããã¯ãæ¬å½ã® set ã®æ¯è¼ã§ã¯ããã¾ããã è¦ç´ ã®é çªãåé¡ã§ã¯ãªãä¸ã«ãéè¤ããè¦ç´ ãåé¡ã«ãã¾ããã =begin original @@ -1925,10 +1983,12 @@ =end original Test::More ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ããã¾ã£ããååã§ãªãæãããã¾ãã -幸éãªãã¨ã«ãTest::More ã¯ãTest::Builderã®ä¸ã«ä½ããã¦ãã¾ãã -Test::Builder ã¯ããããããã¹ãã©ã¤ãã©ãªã¼ã®ããã®ãä¸ã¤ã®ãçµ±åããããããã¯ã¨ã³ããæä¾ãã¦ãã¾ãã -ãã®ãã¨ã¯ã両æ¹ã¨ããTest::Builderã使ã£ã¦ãããäºã¤ã®ãã¹ãã©ã¤ãã©ãªã¼ãªãã°ã -B<åãããã°ã©ã ã§ãã£ããã«ä½¿ãããã¨>ãæå³ãã¾ã +幸éãªãã¨ã«ãTest::More ã¯ãTest::Builder ã®ä¸ã«ä½ããã¦ãã¾ãã +Test::Builder ã¯ããããããã¹ãã©ã¤ãã©ãªã¼ã®ããã®ãä¸ã¤ã®ãçµ±åãããã +ããã¯ã¨ã³ããæä¾ãã¦ãã¾ãã +ãã®ãã¨ã¯ã両æ¹ã¨ããTest::Builder ã使ã£ã¦ããã2ã¤ã® +ãã¹ãã©ã¤ãã©ãªã¼ãªãã°ãB<åãããã°ã©ã ã§ãã£ããã«ä½¿ãããã¨>ã +æå³ãã¾ãã =begin original @@ -1938,7 +1998,7 @@ =end original ããåç´ã«ããã¹ãã®æåã®ä»æ¹ã微調æ´ããããã°ã次ã®ããã«ã -ãã¼ã¹ã¨ãããTest::Builderãªãã¸ã§ã¯ãã«ã¢ã¯ã»ã¹ã§ãã¾ã: +ãã¼ã¹ã¨ããã Test::Builder ãªãã¸ã§ã¯ãã«ã¢ã¯ã»ã¹ã§ãã¾ã: =over 4 @@ -1953,7 +2013,7 @@ =end original -Test::Moreã§éã¶ããã®ãTest::Moreã®åºç¤ããªãTest::Builder ãªãã¸ã§ã¯ãã +Test::More ã§éã¶ããã®ãTest::More ã®åºç¤ããªã Test::Builder ãªãã¸ã§ã¯ãã è¿ãã¾ãã =cut @@ -1976,12 +2036,13 @@ =end original -ãã¹ã¦ã®ãã¹ãããã¹ããããTest::Builder㯠0 ã§çµäºãã¾ã(é常ã§ã)ã +ãã¹ã¦ã®ãã¹ãããã¹ããããTest::Builder 㯠0 ã§çµäºãã¾ã(é常ã§ã)ã ä½ãééã£ã¦ãããï¼ééã£ãæ°ã§çµäºãã¾ããè¨ç»ãã¦ãããããã -å°ãªã(ããå¤ã)ããè¦å¤±ã£ãããä½è¨ãªãã¹ããèµ°ãããã¨ã失æããã¨ã¿ãªããã¾ãã -ãã¹ããå®è¡ãããªããã°ãè¦åãæãã255ã§çµäºãã¾ãã +å°ãªã(ããå¤ã)ããè¦å¤±ã£ãããä½è¨ãªãã¹ããèµ°ãããã¨ã失æãã㨠+ã¿ãªããã¾ãã +ãã¹ããå®è¡ãããªããã°ãè¦åãæãã255 ã§çµäºãã¾ãã ãã¹ããæ»ãã ãããã¨ããã¹ã¦ã®ãã¹ããæåãã¦ãã -失æã¨ã¿ãªãã255ã§çµäºãã¾ãã +失æã¨ã¿ãªãã255 ã§çµäºãã¾ãã =begin original @@ -2001,7 +2062,7 @@ =end original -254以ä¸ã®ãã¹ãã«å¤±æãããã254ãå ±åãã¾ãã +254 以ä¸ã®ãã¹ãã«å¤±æãããã254 ãå ±åãã¾ãã =begin original @@ -2011,7 +2072,9 @@ B<注æ>ããã®æ¯ãèãã¯ãå°æ¥ã®ãã¼ã¸ã§ã³ã§ãªããªãããããã¾ããã -=head1 è¦åã¨æ³¨æ +=head1 CAVEATS and NOTES + +(è¦åã¨æ³¨æ) =over 4 @@ -2023,7 +2086,7 @@ =end original -Test::More ã¯Perl 5.6.0ã§åãã¾ãã +Test::More 㯠Perl 5.6.0 ã§åãã¾ãã =head1 COMPATIBILITY @@ -2135,12 +2198,12 @@ =end original -utf8 ã non-ASCIIãªæåãTest::Moreã¨ä¸ç·ã«ä½¿ãå ´åã -"Wide character in print"ã®è¦åãåºãããããã¾ããã -C<binmode STDOUT, ":utf8">ã使ã£ã¦ããç´ãã¾ãããTest::Builder ( -Test::Moreã«åãä¸ãã¦ãã) STDOUTã¨STDERRãè¤è£½ãã¦ãã¾ãã +utf8 ã non-ASCII ãªæåã Test::More ã¨ä¸ç·ã«ä½¿ãå ´åã +"Wide character in print" ã®è¦åãåºãããããã¾ããã +C<binmode STDOUT, ":utf8"> ã使ã£ã¦ããç´ãã¾ããã +Test::Builder (Test::Moreã«åãä¸ãã¦ãã) STDOUT 㨠STDERR ãè¤è£½ãã¦ãã¾ãã ãã®ããããããã¸ã®ã©ããªå¤æ´ãããããã®åºåã®ä»æ¹ã®å¤æ´ãå«ã¿ã -Test::Moreã«ã¯ãããã¾ããã +Test::More ã«ã¯ãããã¾ããã =begin original @@ -2149,8 +2212,8 @@ =end original -1ã¤ã®ã¯ã¼ã¯ã¢ã©ã¦ã³ã㯠Test::More(ããã»ãã®Testã¢ã¸ã¥ã¼ã«)ããã¼ããããåã«ã -STDOUTã¨STDERRã«å¯è½ãªéãæ©ãã¨ã³ã³ã¼ãã£ã³ã°ãé©ç¨ãããã¨ã§ãã +1ã¤ã®ã¯ã¼ã¯ã¢ã©ã¦ã³ã㯠Test::More (ããã»ãã® Test ã¢ã¸ã¥ã¼ã«)ããã¼ããããåã«ã +STDOUT 㨠STDERR ã«å¯è½ãªéãæ©ãã¨ã³ã³ã¼ãã£ã³ã°ãé©ç¨ãããã¨ã§ãã use open ':std', ':encoding(utf8)'; use Test::More; @@ -2186,11 +2249,13 @@ =end original -ãªã¼ãã¼ãã¼ãããããªãã¸ã§ã¯ãã¯B<æååã¨ãã¦>(ã¾ãã¯ã cmp_ok()ã§ã¯ã -æ¯è¼ãããªãã¬ã¼ã¿ã¼ã«ãããã£ã¦ãæååãæ°åã¨ãã¦)æ¯è¼ããã¾ããããã¯ã -Test::Moreããããè¯ããã©ãã¯ããã¯ã¹ãã¹ãã許ãã¦ãããªãã¸ã§ã¯ãã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ã -çªãåºãã®ã妨ãã¾ãããã®ãããé¢æ°ã裸ã®æååã®ä»£ããã«ããªã¼ãã¼ãã¼ãããã -ãªãã¸ã§ã¯ããè¿ãããã«ãªãã°ãããªãã®ãã¹ãã¯éãã«æ°ä»ããªãã§ããããããã¯è¯ããã¨ã§ãã +ãªã¼ãã¼ãã¼ãããããªãã¸ã§ã¯ãã¯B<æååã¨ãã¦>(ã¾ãã¯ã cmp_ok() ã§ã¯ã +æ¯è¼ãããªãã¬ã¼ã¿ã¼ã«ãããã£ã¦ãæååãæ°åã¨ãã¦)æ¯è¼ããã¾ãã +ããã¯ãTest::More ããããè¯ããã©ãã¯ããã¯ã¹ãã¹ãã許ãã¦ãã +ãªãã¸ã§ã¯ãã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãçªãåºãã®ã妨ãã¾ãã +ãã®ãããé¢æ°ã裸ã®æååã®ä»£ããã«ããªã¼ãã¼ãã¼ãããã +ãªãã¸ã§ã¯ããè¿ãããã«ãªãã°ãããªãã®ãã¹ãã¯éãã«æ°ä»ããªãã§ãããã +ããã¯è¯ããã¨ã§ãã =begin original @@ -2201,9 +2266,10 @@ =end original -ã§ãããis_deeply()ã®ãããªé¢æ°ãããªãã¸ã§ã¯ãããªã¼ãã¼ãã¼ããããæååã®å é¨ã® -ãã¹ãã«ä½¿ããã¨ãåºæ¥ãªãã¨ããããã§ã¯ããã¾ããããã®ã¨ã¼ã¹ã§ã¯ã -L<Test::Deep>ãææ¡ãã¾ããè¤éãªãã¼ã¿æ§é ã®ããã«ãããæè»ãªãã¹ãé¢æ°ãããã¾ãã +ã§ãããis_deeply() ã®ãããªé¢æ°ãããªãã¸ã§ã¯ãããªã¼ãã¼ãã¼ããããæååã® +å é¨ã®ãã¹ãã«ä½¿ããã¨ãåºæ¥ãªãã¨ããããã§ã¯ããã¾ããããã®ã±ã¼ã¹ã§ã¯ã +L<Test::Deep> ãææ¡ãã¾ãã +è¤éãªãã¼ã¿æ§é ã®ããã«ãããæè»ãªãã¹ãé¢æ°ãããã¾ãã =item Threads @@ -2215,8 +2281,9 @@ =end original -Test::Moreã¯ãTest::Moreããã¼ããããåã«ã"use threads"ãããã¦ããå ´åã -ã¹ã¬ãããæèãã¾ãã次㯠ok ã§ã: +Test::More ã¯ãTest::More ããã¼ããããåã«ã"use threads" ãããã¦ããå ´åã +ã¹ã¬ãããæèãã¾ãã +次㯠ok ã§ã: use threads; @@ -2239,7 +2306,8 @@ =end original -5.8.1 以ä¸ãæ³å®ãã¦ãã¾ããããæªæºã®ãã¼ã¸ã§ã³ã¯ãå¤ãã®ãã°ãããã¾ãã +5.8.1 以ä¸ãæ³å®ãã¦ãã¾ãã +ããæªæºã®ãã¼ã¸ã§ã³ã¯ãå¤ãã®ãã°ãããã¾ãã =back @@ -2259,9 +2327,10 @@ =end original ããã¯ãJoshua Pritikin ã®ãã¹ãã¢ã¸ã¥ã¼ã«ãã¾ã¨ãã¦é²åããããã®ã§ãã -èªåã®ok()ã«ã¼ãã³ãæåã«æ¸ããã¨ããPritikinã®ãã¹ãã¢ã¸ã¥ã¼ã«ã®åå¨ã«ã¾ã£ããæ°ã¥ãã¦ãã¾ããã§ããã -ãã®ã¢ã¸ã¥ã¼ã«ãå¨ãã®ã¯ãç°¡åã«ãã¹ãã®ååããã¹ãã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ãæ¼ãè¾¼ãæ¹æ³ãè¦ã¤ãåºããªãã£ãããã§ã -(ä»ã®ããã¤ãã®åé¡ã¨ã¨ãã«)ã +èªåã® ok() ã«ã¼ãã³ãæåã«æ¸ããã¨ããPritikin ã®ãã¹ãã¢ã¸ã¥ã¼ã«ã®åå¨ã« +ã¾ã£ããæ°ã¥ãã¦ãã¾ããã§ããã +ãã®ã¢ã¸ã¥ã¼ã«ãå¨ãã®ã¯ãç°¡åã«ãã¹ãã®ååããã¹ãã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ã +æ¼ãè¾¼ãæ¹æ³ãè¦ã¤ãåºããªãã£ãããã§ã(ä»ã®ããã¤ãã®åé¡ã¨ã¨ãã«)ã =begin original @@ -2273,7 +2342,7 @@ =end original -ããã§ã®ã´ã¼ã«ã¯ãåå¨ããTest.pmãããæè»æ§ãæä¾ãã¤ã¤ +ããã§ã®ã´ã¼ã«ã¯ãåå¨ãã Test.pm ãããæè»æ§ãæä¾ãã¤ã¤ å¦ã³ããããããã«ä½¿ãã¦ãã¤ã¾ããã«ãããã¹ãã®ã¦ã¼ãã£ãªãã£ã§ãã ãããªããã§ãã»ã¨ãã©ã®å ±éã®ã«ã¼ãã³ã®ååã¯å°ããã¾ã¾ã«ãã¦ã ç¹å¥ãªã±ã¼ã¹ã¨éæ³ã®å´é¢ã®å¹æã¯æå°éã«ã¨ã©ãã¾ããã @@ -2290,9 +2359,10 @@ =end original -L<Test::Simple> ãããTest::Moreãã¾ã£ããæ··ä¹±ãããã ãã®ãã®ã§ããã -ãã ããã¹ããæ¸ãããã ããªããå¾ã§ãTest::Moreã«ã¢ããã°ã¬ã¼ãã§ãã¾ã -(Test::More ã¯ãä¸ä½äºææ§ãããã¾ã)ã +L<Test::Simple> ãããTest::More ãã¾ã£ããæ··ä¹±ãããã ãã®ãã®ã§ããã +ãã ããã¹ããæ¸ãããã ããªãã +å¾ã§ãTest::More ã«ã¢ããã°ã¬ã¼ãã§ãã¾ã(Test::More ã¯ãä¸ä½äºææ§ã +ããã¾ã)ã =begin original @@ -2302,8 +2372,8 @@ =end original -L<Test::Harness>ã¯ããã¹ããå®è¡æ©ã§ãããPerlã®åºåã¤ã³ã¿ããªã¿ã§ãã -C<make test>ã«åãä¸ãã¦ãããã®ã§ãããC<prove>ã¦ã¼ãã£ãªãã£ã +L<Test::Harness> ã¯ããã¹ããå®è¡æ©ã§ãããPerl ã®åºåã¤ã³ã¿ããªã¿ã§ãã +C<make test> ã«åãä¸ãã¦ãããã®ã§ãããC<prove> ã¦ã¼ãã£ãªãã£ã ç±æ¥ããã¨ããã§ãã =begin original @@ -2314,9 +2384,11 @@ =end original -C<Test::Legacy>ã¯ãTest.pmã¨ä¸ç·ã«æ¸ãããããªãªã¸ãã«ã®ãã¹ãã¢ã¸ã¥ã¼ã«ã§ãã -ä»ã®ãã¹ãã©ã¤ãã©ãªã¨ä¸ç·ã«ã¾ãã¾ãåãã¾ãããTest::Legacyã¯ã -Test.pmã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãã¨ãã¥ã¬ã¼ãããä»ã®ãã®ã¨ãã¾ãåãã¾ãã +L<Test::Legacy> ã¯ãTest.pm ã¨ä¸ç·ã«æ¸ãããããªãªã¸ãã«ã® +ãã¹ãã¢ã¸ã¥ã¼ã«ã§ãã +ä»ã®ãã¹ãã©ã¤ãã©ãªã¨ä¸ç·ã«ã¾ãã¾ãåãã¾ããã +Test::Legacy ã¯ãTest.pm ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãã¨ãã¥ã¬ã¼ãããä»ã®ãã®ã¨ +ãã¾ãåãã¾ãã =begin original @@ -2325,23 +2397,40 @@ =end original -L<Test::Differences> è¤éãªãã¼ã¿æ§é ããã¹ãããããã®ããå¤ãã®æ¹æ³ã®ããã«ã -Test::Moreã¨ä¸ç·ã«ããã¯ãããã¾ãã +L<Test::Differences> è¤éãªãã¼ã¿æ§é ããã¹ãããããã®ããå¤ãã® +æ¹æ³ã®ããã«ã +Test::More ã¨ä¸ç·ã«ããã¯ãããã¾ãã + +=begin original L<Test::Class> is like xUnit but more perlish. -L<Test::Class> ã¯ãxUnitã«ä¼¼ã¦ãã¾ããããã perlã£ã½ãã§ãã +=end original + +L<Test::Class> ã¯ãxUnit ã«ä¼¼ã¦ãã¾ããããã perlã£ã½ãã§ãã + +=begin original L<Test::Deep> gives you more powerful complex data structure testing. +=end original + L<Test::Deep> ã¯ãããååã§è¤éãªãã¼ã¿æ§é ã®ãã¹ããã§ãã¾ãã +=begin original + L<Test::Inline> shows the idea of embedded testing. -L<Test::Inline>ãã¹ããåãè¾¼ãèããè¦ãã¾ãã +=end original + +L<Test::Inline> ãã¹ããåãè¾¼ãèããè¦ãã¾ãã + +=begin original L<Bundle::Test> installs a whole bunch of useful test modules. +=end original + L<Bundle::Test> ã¯ã便å©ãªãã¹ããã¸ã¥ã¼ã«ãå ¨é¨ã¤ã³ã¹ãã¼ã«ãã¾ãã =head1 AUTHORS Index: docs/modules/Test-Simple-0.99/lib/Test/Simple.pod diff -u docs/modules/Test-Simple-0.99/lib/Test/Simple.pod:1.1 docs/modules/Test-Simple-0.99/lib/Test/Simple.pod:1.2 --- docs/modules/Test-Simple-0.99/lib/Test/Simple.pod:1.1 Sun Nov 10 14:17:31 2013 +++ docs/modules/Test-Simple-0.99/lib/Test/Simple.pod Tue Nov 12 01:30:01 2013 @@ -26,7 +26,7 @@ =end original -** ãã¹ãã«é¦´æããªããªããã¾ããB<Test::Tutorialãèªãã§ä¸ãã>! ** +** ãã¹ãã«é¦´æããªããªããã¾ããB<Test::Tutorial ãèªãã§ä¸ãã>! ** =begin original @@ -37,9 +37,10 @@ =end original -ããã¯ãCPANã¢ã¸ã¥ã¼ã«ããä»ã®ç®çã®ããã«ãã¹ããæ¸ãã®ã«ã -極ãã¦ç°¡åãªã極ãã¦åºæ¬çãªã¢ã¸ã¥ã¼ã«ã§ãããããããè¤éãªãã¹ããæããªãã -(ç½®ãæãå¯è½ãªå®è£ ã§ãã)Test::Moreã¢ã¸ã¥ã¼ã«ã使ã£ã¦ä¸ããã +ããã¯ãCPAN ã¢ã¸ã¥ã¼ã«ããä»ã®ç®çã®ããã«ãã¹ããæ¸ãã®ã«ã +極ãã¦ç°¡åãªã極ãã¦åºæ¬çãªã¢ã¸ã¥ã¼ã«ã§ãã +ãããããè¤éãªãã¹ããæããªãã +(ç½®ãæãå¯è½ãªå®è£ ã§ãã)Test::More ã¢ã¸ã¥ã¼ã«ã使ã£ã¦ä¸ããã =begin original @@ -49,9 +50,10 @@ =end original -Perlã®ãã¹ãã®åºæ¬çãªã¦ãããã¯ãokã§ãããã¹ãããããã®ããããã«ã¤ãã¦ã +Perl ã®ãã¹ãã®åºæ¬çãªã¦ãããã¯ãokã§ãã +ãã¹ãããããã®ããããã«ã¤ãã¦ã ããã°ã©ã ã¯ããokããããnot okããåºåããåæ ¼ãããã失æãããã示ãã¾ãã -ok()é¢æ°ã§ããããè¡ãã¾ã(ä¸ãè¦ã¦ãã ãã)ã +ok() é¢æ°ã§ããããè¡ãã¾ã(ä¸ãè¦ã¦ãã ãã)ã =begin original @@ -62,9 +64,12 @@ =end original -å¯ä¸ã®ä»ã®å¼·å¶ã¯ãè¡ããã¨è¨ç»ãã¦ãããã¹ãããããã¤ã§ããããå ã«å®£è¨ããªããã°ãªããªããã¨ã§ãã -ãã®å®£è¨ã¯ãä½ãããã¹ãã®éã«æãããåé¡ã«ãªãããã¹ãã®ããã°ã©ã ãä¸æãããã -ãã¹ããã¹ãããããããä½ããããã£ããã®ãèµ·ããå ´åã®ããã«ããã¾ãããã®ããã«ãã¾ãï¼ +å¯ä¸ã®ä»ã®å¼·å¶ã¯ãè¡ããã¨è¨ç»ãã¦ãããã¹ãããããã¤ã§ããããå ã« +宣è¨ããªããã°ãªããªããã¨ã§ãã +ãã®å®£è¨ã¯ãä½ãããã¹ãã®éã«æãããåé¡ã«ãªãããã¹ãã®ããã°ã©ã ã +ä¸æãããããã¹ããã¹ãããããããä½ããããã£ããã®ãèµ·ããå ´åã®ããã« +ããã¾ãã +ãã®ããã«ãã¾ãï¼ use Test::Simple tests => 23; @@ -91,7 +96,8 @@ =end original ok() ã«ã¯å¼ãä¸ãããã¦ãã¾ã(ãã®å ´åãC<$foo eq $bar>)ã -ä¸ããããå¼ããçãªãããã¹ãã¯åæ ¼ã§ãã ä¸ããããå¼ããå½ãªããåæ ¼ã§ã¯ããã¾ããã +ä¸ããããå¼ããçãªãããã¹ãã¯åæ ¼ã§ãã ä¸ããããå¼ããå½ãªãã +åæ ¼ã§ã¯ããã¾ããã ã ããããããããã§ãã =begin original @@ -117,8 +123,10 @@ =end original ããã$nameãå¼æ°ã«ä¸ãããªãã$nameã¯ããok/not okãã¨ä¸ç·ã«åºåããã -ãã¹ãã失æããå ´åã«ããã¹ããè¦ã¤ããã®ãç°¡åã«ãªãã¾ã(ã ãååã ãã§æ¢ãã¾ã)ã -ã¾ãããããã¦ããã°ãä»ã®äººããããªãã®ãã¹ããä½ã®ããã«ããã®ããç解ããã®ãç°¡åã«ãªãã¾ãã +ãã¹ãã失æããå ´åã«ããã¹ããè¦ã¤ããã®ãç°¡åã«ãªãã¾ã(ã ãååã ã㧠+æ¢ãã¾ã)ã +ã¾ãããããã¦ããã°ãä»ã®äººããããªãã®ãã¹ããä½ã®ããã«ããã®ãã +ç解ããã®ãç°¡åã«ãªãã¾ãã ãã¹ãã®ååãç¨ãããã¨ã¯ãå¼·ãæ¨å¥¨ããã¾ãã =begin original @@ -139,6 +147,8 @@ ããªãã®æå³ããããã«åãã¾ãï¼stuffã空ãªã失æãã¾ãï¼ã +=cut + =back =begin original @@ -167,13 +177,14 @@ =end original -ãããå ¨ã¦ã®ãã¹ããåæ ¼ããã°ãTest::Simpleã¯ã0ã§ãçµãã¾ã(ããã¯æ®éã§ã)ã +ãããå ¨ã¦ã®ãã¹ããåæ ¼ããã°ãTest::Simpleã¯ã0ã§ãçµãã¾ã +(ããã¯æ®éã§ã)ã ä½ããééã£ã¦ããã°ãééã£ããæ°ã§çµäºãã¾ãã -è¨ç»ããã®ãããå°ãªãï¼ã¾ãã¯ãå¤ãã®ï¼ãã¹ããå®è¡ãããå ´åãè¦ããããªããã®ï¼ãä½åãªãã®ï¼ã -ãããããè¨ç»ã¯å¤±æããã¨ã¿ãªããã¾ãã +è¨ç»ããã®ãããå°ãªãï¼ã¾ãã¯ãå¤ãã®ï¼ãã¹ããå®è¡ãããå ´åã +è¦ããããªããã®ï¼ãä½åãªãã®ï¼ããããããè¨ç»ã¯å¤±æããã¨ã¿ãªããã¾ãã ããããã¹ããå®è¡ãããªããã°ãTest::Simpleã¯ãè¦åãæãã¦ã -255ãã§çµãã¾ãã -å ¨ã¦ã®ãã¹ããã¡ããã¨å®å ¨ã«ãããå¾ã§ãããã¹ããæ»ãã° +255 ã§çµãã¾ãã +å ¨ã¦ã®ãã¹ããã¡ããã¨å®å ¨ã«ãããå¾ã§ãããã¹ããæ»ãã°ã ããããã¾ã 失æã§ããã¨èãããã255ã§çµãã¾ãã =begin original @@ -184,6 +195,14 @@ ã¤ã¾ããçµäºã³ã¼ãã¯â¦ +=begin original + + 0 all tests successful + 255 test died or all passed but wrong # of tests run + any other number how many failed (including missing or extras) + +=end original + 0 å ¨ã¦ã®ãã¹ããæå 255 ãã¹ããæ»ãã ãå ¨é¨éã£ããä½ããããã # ãã¹ãã®å®è¡ã«ã¤ã㦠any other number ããã¤å¤±æããã(足ããªããã®ãä½è¨ãªãã®ãå«ã) @@ -192,10 +211,9 @@ If you fail more than 254 tests, it will be reported as 254. - =end original -254以ä¸ã®ãã¹ãã失æããå ´åã¯ã254ã¨ãã¦ãå ±åããã¾ãã +254 以ä¸ã®ãã¹ãã失æããå ´åã¯ã254 ã¨ãã¦ãå ±åããã¾ãã =begin original @@ -207,7 +225,7 @@ ãã®ã¢ã¸ã¥ã¼ã«ã¯ã決ãã¦ãå®å ¨ãªãã¹ãã·ã¹ãã ã§ãããã¨ã¯ãã¾ããã ãã®ã¢ã¸ã¥ã¼ã«ã¯ããã ãããªãã«ãã¹ããå§ããããåã£æãã«ããã¾ããã -ä¸æ¦ãã¹ããå§ãããªãã°ãL<Test::More>ãè¦ããã¨ãã奨ããã¾ãã +ä¸æ¦ãã¹ããå§ãããªãã°ãL<Test::More> ãè¦ããã¨ãã奨ããã¾ãã =head1 EXAMPLE @@ -219,7 +237,7 @@ =end original -æ¶ç©ºã®Filmã¢ã¸ã¥ã¼ã«ã®ããã®ç°¡åãªã.t ãã¡ã¤ã«ã®ä¾ãããã¾ãã +æ¶ç©ºã® Film ã¢ã¸ã¥ã¼ã«ã®ããã®ç°¡åãªã.t ãã¡ã¤ã«ã®ä¾ãããã¾ãã use Test::Simple tests => 5; @@ -261,7 +279,7 @@ =end original -Film::Rating()ã¡ã½ãããå£ãã¦ããäºã示ãã¦ãã¾ãã +Film::Rating() ã¡ã½ãããå£ãã¦ããäºã示ãã¦ãã¾ãã =head1 CAVEATS @@ -276,10 +294,11 @@ =end original -Test::Simpleã¯ããã®çµäºã³ã¼ãã§ãæ大ã§254ã®å¤±æãå ±åããã ãã§ãã -ãã®ãã¨ãåé¡ã«ãªãã®ãªãããããããè«å¤§ãªãã¹ãscriptãªã®ã§ãããã -ãã®ãã¹ãscriptãè¤æ°ã®ãã¡ã¤ã«ã«åå²ãã¦ä¸ããã -(ãããã¯ãçµäºç¶æ ã¨ãã¦ã符å·ãªãã®çãæ´æ°ã使ãUNIXã®äººã ãéé£ãã¦ä¸ãã) +Test::Simple ã¯ããã®çµäºã³ã¼ãã§ãæ大㧠254 ã®å¤±æãå ±åããã ãã§ãã +ãã®ãã¨ãåé¡ã«ãªãã®ãªãããããããè«å¤§ãªãã¹ãã¹ã¯ãªãããªã®ã§ãããã +ãã®ãã¹ãã¹ã¯ãªãããè¤æ°ã®ãã¡ã¤ã«ã«åå²ãã¦ä¸ããã +(ãããã¯ãçµäºç¶æ ã¨ãã¦ã符å·ãªãã®çãæ´æ°ã使ã UNIX ã®äººã ã +éé£ãã¦ä¸ãã) =begin original @@ -289,9 +308,16 @@ =end original -VMSã®çµäºã³ã¼ãã¯ãã以å¤ã®ä¸çã¨ã¯ããã£ã¨ããã£ã¨éã£ã¦ããã -èªåã®ããæ¹ãå¾ã¦ããPerlã¯æããããã®çµäºã³ã¼ããæ¼ãã¤ã¶ãã®ã§ã -VMSã§ã¯ã次ã®ããã«åãã¾ãã +VMS ã®çµäºã³ã¼ãã¯ãã以å¤ã®ä¸çã¨ã¯ããã£ã¨ããã£ã¨éã£ã¦ããã +èªåã®ããæ¹ãå¾ã¦ãã Perl ã¯æããããã®çµäºã³ã¼ããæ¼ãã¤ã¶ãã®ã§ã +VMS ã§ã¯ã次ã®ããã«åãã¾ãã + +=begin original + + 0 SS$_NORMAL all tests successful + 4 SS$_ABORT something went wrong + +=end original 0 SS$_NORMAL å ¨ã¦ã®ãã¹ãã¯æå 4 SS$_ABORT ä½ããééã£ã¦ãã¾ã @@ -314,7 +340,7 @@ =end original -Test::Simpleã¯ãperl 5.6.0 ã¾ã§ãB<ã¯ã£ããã¨>ãã¹ãããã¾ãã +Test::Simple ã¯ãperl 5.6.0 ã¾ã§ãB<ã¯ã£ããã¨> ãã¹ãããã¾ãã =begin original @@ -322,7 +348,7 @@ =end original -Test::Simple ã¯ãperl 5.8.1 以ä¸ã§ãã¹ã¬ããã»ã¼ãã§ãã +Test::Simple ã¯ãperl 5.8.1 以ä¸ã§ãã¹ã¬ããã»ã¼ãã§ãã =head1 HISTORY @@ -342,11 +368,14 @@ =end original ãã®ã¢ã¸ã¥ã¼ã«ã¯ãããå¤ãTony Bowden ã¨ä¸ç·ã«ãå½¼ã®å®¶ã®ãããã³ã§ã -ç§ã®æ±ãã¦ããæ°ãããã¹ãã®ã¢ã¸ã¥ã¼ã«ã«æ¬å½ã«è¤éãªç¹å¾´ãæ¸ãã¨ããåé¡ã«ã¤ãã¦è©±ãã¦ããéä¸ã«ãæãã¤ãã¾ããã +ç§ã®æ±ãã¦ããæ°ãããã¹ãã®ã¢ã¸ã¥ã¼ã«ã«æ¬å½ã«è¤éãªç¹å¾´ãæ¸ãã¨ãã +åé¡ã«ã¤ãã¦è©±ãã¦ããéä¸ã«ãæãã¤ãã¾ããã å½¼ã¯ã主ãªåé¡ã¯ããããã®ã¨ãã¸ã±ã¼ã¹ãå¦çãããã¨ã§ã¯ãªãã 人ã ããã¹ããæ¸ãã®ãå«ã£ã¦ããäºã«ã¤ããã¨è¦ã¦ãã¾ããã -å¿ è¦ã¨ããã¦ããã®ã¯ããã¹ããããå ¨ã¦ã®ãã¤ãä»äºãåãåºãããå®ã«ãæ¬å½ã«ãå¦ã³ãããã -å ¨ãç°¡åãªã¢ã¸ã¥ã¼ã«ã§ãããPaul Johnsonã¯ãåæã«ãã®ã¢ã¤ãã£ã¢ãæã£ã¦ãã¾ãã(ããä¸å¹¸ãªãã¨ã«ãããã¯ãTonyã®ãããã³ã«ããªãã£ã)ã +å¿ è¦ã¨ããã¦ããã®ã¯ããã¹ããããå ¨ã¦ã®ãã¤ãä»äºãåãåºãããå®ã«ã +æ¬å½ã«ãå¦ã³ããããå ¨ãç°¡åãªã¢ã¸ã¥ã¼ã«ã§ããã +Paul Johnsonã¯ãåæã«ãã®ã¢ã¤ãã£ã¢ãæã£ã¦ãã¾ãã(ããä¸å¹¸ãªãã¨ã«ã +å½¼ã¯ãTonyã®ãããã³ã«ããªãã£ã)ã ãããããããã®ã¾ã£ããç°¡åãªãã¹ãã®ã¢ã¸ã¥ã¼ã«ã§ãã =head1 SEE ALSO @@ -364,10 +393,10 @@ =end original -ãã¹ãã®æ©è½ãããå¤ãï¼Test::Simpleãåæ¥ããããTest::Moreãè¦ã¦ãã ããã -Test::Simpleã¯ãTest::Moreã§ã100%äºææ§ãããã¾ãã -(ãã¨ãã°ãããã°ã©ã ã§ãTest::Simpleã®ä»£ããã«ãTest::Moreã使ããã¨ãåºæ¥ã¾ããã -ããã¯ãã®ã¾ã¾åãã¾ãã) +ãã¹ãã®æ©è½ãããå¤ãï¼Test::Simple ãåæ¥ããããTest::More ãè¦ã¦ãã ããã +Test::Simple ã¯ãTest::More ã¨ã100%åæ¹äºææ§ãããã¾ãã +(ãã¨ãã°ãããã°ã©ã ã§ãTest::Simpleã®ä»£ããã«ãTest::Moreã +使ããã¨ãåºæ¥ã¾ãããããã¯ãã®ã¾ã¾åãã¾ãã) =item L<Test> @@ -393,8 +422,7 @@ =end original -Test::Moreã® SEE ALSO ã«ã¯ãããå¤ãã®ãã¹ãã¢ã¸ã¥ã¼ã«ãããã¾ãã - +ãããªããã¹ãã¢ã¸ã¥ã¼ã«ã«ã¤ãã¦ã¯ Test::More ã® SEE ALSO ãè¦ã¦ãã ããã =head1 AUTHORS @@ -409,3 +437,5 @@ modify it under the same terms as Perl itself. See F<http://www.perl.com/perl/misc/Artistic.html> + +=cut \ No newline at end of file Index: docs/modules/Test-Simple-0.99/lib/Test/Tutorial.pod diff -u docs/modules/Test-Simple-0.99/lib/Test/Tutorial.pod:1.1 docs/modules/Test-Simple-0.99/lib/Test/Tutorial.pod:1.2 --- docs/modules/Test-Simple-0.99/lib/Test/Tutorial.pod:1.1 Sun Nov 10 14:17:31 2013 +++ docs/modules/Test-Simple-0.99/lib/Test/Tutorial.pod Tue Nov 12 01:30:01 2013 @@ -20,9 +20,10 @@ =end original -I<ãã¼ã¼ã¼ã¼ã¼!!!!ãã¹ãã¯å«! ä½ãããã¦ããã¹ãã¯å«! -ã¶ã£ã¦ãããã¡æã£ã¦ãããããã¤ãã«éã£ã¦ããããã©ã -ãã¹ããæ¸ãããªãã§!> +I<ãã¼ã¼ã¼ã¼ã¼!!!! +ãã¹ãã¯å«! +ä½ãããã¦ããã¹ãã¯å«! +ã¶ã£ã¦ãããã¡æã£ã¦ãããããã¤ãã«éã£ã¦ããããã©ããã¹ããæ¸ãããªãã§!> =begin original @@ -67,7 +68,7 @@ =end original -ãã¹ãã¯ããããããã ã¨å¤æãã¾ããï¼ +ãã¹ãã¯ããããããã ã¨å¤æãã¾ãã? =begin original @@ -76,7 +77,9 @@ =end original -ããã§ããããå ¨ã¦ã¯è¡ã£ã¦ãã¾ãã¾ãããããªãã®ããã«ãé»éè¡ããã¹ã¦è¡ãã¾ãã +ããã§ãããã +å ¨ã¦ã¯è¡ã£ã¦ãã¾ãã¾ããã +ããªãã®ããã«ãé»éè¡ããã¹ã¦è¡ãã¾ãã ããã«ãã®ä»æããããã¾ã⦠=head2 Nuts and bolts of testing. @@ -118,9 +121,12 @@ =end original -ãã®ã³ã¼ãã®æå³ï¼ C<1..1>[1]ãä¸ã¤ã®ãã¹ããè¡ãã¾ãããC<ok 1>ãæåã®ãã¹ãã¯ãã¹ãã¾ãããã -ããã¦ããããããã¹ãã®éæ³ã®ã»ã¨ãã©å ¨é¨ã§ããåºæ¬çãªã¦ãããã®ãã¹ãã¯I<ok>ã§ãã -L<Test::Harness>ã¯ããã¹ãã®çµæã解éããæåããã失æããããå¤æãã¾ã(å¾ã§ã¯ããã£ã¨å¤æãã¾ã)ã +ãã®ã³ã¼ãã®æå³ï¼ C<1..1>[1]ãä¸ã¤ã®ãã¹ããè¡ãã¾ãããC<ok 1> +ãæåã®ãã¹ãã¯ãã¹ãã¾ãããã +ããã¦ããããããã¹ãã®éæ³ã®ã»ã¨ãã©å ¨é¨ã§ãã +åºæ¬çãªã¦ãããã®ãã¹ã㯠I<ok> ã§ãã +L<Test::Harness>ã¯ããã¹ãã®çµæã解éããæåããã失æããããå¤æãã¾ã +(å¾ã§ã¯ããã£ã¨å¤æãã¾ã)ã =begin original @@ -130,7 +136,8 @@ =end original ãããã®ã³ã¼ããå ¨é¨æ¸ãã®ã¯ãããã«é£½ãã¦ãã¾ãã¾ãã -ã§ããã幸éãªãã¨ã«ãL<Test::Simple>ãããã¾ããããã«ã¯ãC<ok()>ã¨ããä¸ã¤ã®é¢æ°ãããã¾ãã +ã§ããã幸éãªãã¨ã«ãL<Test::Simple> ãããã¾ãã +ããã«ã¯ãC<ok()> ã¨ããä¸ã¤ã®é¢æ°ãããã¾ãã #!/usr/bin/perl -w @@ -147,9 +154,11 @@ =end original -ããã¯ä¸ã®ã³ã¼ãã¨åããã¨ããã¾ããC<ok()>ã¯ãPerlã®ãã¹ãã®ä¸å¿ã§ãã -ããããã¯ãèªåã§æ¸ã代ããã«ãC<ok()>ã使ãã¾ãã -C<ok()> ãçãè¿ãã°ããã¹ãã¯åæ ¼ã§ããå½ã§ããã°ã失æã§ã. +ããã¯åã®ã³ã¼ãã¨åããã¨ããã¾ãã +C<ok()> ã¯ãPerlã®ãã¹ãã®ä¸å¿ã§ãã +ããããã¯ãèªåã§æ¸ã代ããã«ãC<ok()> ã使ãã¾ãã +C<ok()> ãçãè¿ãã°ããã¹ãã¯åæ ¼ã§ãã +å½ã§ããã°ã失æã§ã. #!/usr/bin/perl -w @@ -180,10 +189,11 @@ =end original -C<1..2> ãäºã¤ã®ãã¹ããè¡ãã¾ãã +C<1..2> ãäºã¤ã®ãã¹ããè¡ãã¾ããã ãã®çªå·ã¯ããã¹ãããã°ã©ã ãæåããæå¾ã¾ã§å®è¡ããããã¨ãä¿è¨¼ãã æ»ãã ããããã¤ãã®ãã¹ããã¹ãããããããã¦ããªããã¨ãä¿è¨¼ããå©ãã«ãªãã¾ãã -C<ok 1>ãæåã®ãã¹ãã¯ãã¹ãã¾ãããã C<not ok 2> ã2çªç®ã®ãã¹ãã¯å¤±æãã¾ãããã +C<ok 1>ãæåã®ãã¹ãã¯ãã¹ãã¾ãããã +C<not ok 2> ã2çªç®ã®ãã¹ãã¯å¤±æãã¾ãããã Test::Simple ã¯ãã¹ãã«ã¤ãã¦ã®æç¨ãªç¹å¥ã®ã³ã¡ã³ããåºåãã¾ãã =begin original @@ -195,9 +205,12 @@ =end original -æãã¯ããã¾ãããããã£ã¡ã¸ãã¦ãæãåã£ã¦ãã¢ã¸ã¥ã¼ã«ããã¹ãããä¾ãã¿ãã¾ãããã -ãã®ä¾ã«ãæ¥ä»ã®ã©ã¤ãã©ãªã§ãããB<Date::ICal>ãããã¹ããã¾ãã -B<Date::ICal>ã¯ãCPANã«ããã¾ãã®ã§ãã³ãã¼ããã¦ã³ãã¼ããã¦ãé²ãã§ä¸ãã[2]ã +æãã¯ããã¾ãããã +ãã£ã¡ã¸ãã¦ãæãåã£ã¦ã +ã¢ã¸ã¥ã¼ã«ããã¹ãããä¾ãã¿ãã¾ãããã +ãã®ä¾ã«ãæ¥ä»ã®ã©ã¤ãã©ãªã§ãããB<Date::ICal> ããã¹ããã¾ãã +B<Date::ICal> ã¯ãCPANã«ããã¾ãã®ã§ãã³ãã¼ããã¦ã³ãã¼ããã¦ã +é²ãã§ä¸ãã[2]ã =head2 Where to start? @@ -213,11 +226,12 @@ =end original -ããããã¹ãã®ä¸çªé£ããã¨ããã§ã.ã©ãããã¯ããã¾ããã? +ããããã¹ãã®ä¸çªé£ããã¨ããã§ããã©ãããã¯ããã¾ããã? ã¢ã¸ã¥ã¼ã«ã®å ¨ã¦ããã¹ããããã¨ã¯ãæããã«å¤§ããªä»äºã§ãããå§åããã¾ãã -æãè¯ãã®ã¯ãæåã¯ããã¯ããããã¨ã§ã. -C<Date::ICal> ã¯ããªãã¸ã§ã¯ãæåã®ã¢ã¸ã¥ã¼ã«ã§ããã§ãããããªãã¸ã§ã¯ããä½ããã¨ããã¯ãããã°ããã -ãããC<new()>ããã¹ããã¾ãããã +æãè¯ãã®ã¯ãæåã¯ããã¯ããããã¨ã§ãã +C<Date::ICal> ã¯ããªãã¸ã§ã¯ãæåã®ã¢ã¸ã¥ã¼ã«ã§ãã +ã§ãããããªãã¸ã§ã¯ããä½ããã¨ããã¯ãããã°ããã +ã§ãã®ã§ãC<new()> ããã¹ããã¾ãããã #!/usr/bin/perl -w @@ -251,7 +265,7 @@ =end original -ããã§ã¨ã! æåã®æçãªãã¹ããæ¸ãã¾ããã +ããã§ã¨ã! æåã®å½¹ã«ç«ã¤ãã¹ããæ¸ãã¾ããã =head2 Names @@ -265,8 +279,8 @@ =end original ãã®åºåã¯ãå ¨ç¶è¨è¿°çãããªãã§ãã? -2ã¤ãããã¹ããç¡ããªãããã®ãã¡ã®ä¸ã¤ã2çªç®ã®ãã®ã ã¨åããã¾ããã -102ããã¹ãããã£ãããã©ãã§ãããï¼ +2ã¤ãããã¹ããç¡ããªãããã®ãã¡ã®ä¸ã¤ã 2 çªç®ã®ãã®ã ã¨åããã¾ããã +102 ããã¹ãããã£ãããã©ãã§ããã? =begin original @@ -275,8 +289,8 @@ =end original -ããããã®ãã¹ãã«ã¯ãã¡ãã£ã¨ããè¨è¿°çãªååã2çªç®ã®å¼æ°ã¨ãã¦ã -C<ok()>ã«ä¸ãããã¨ãåºæ¥ã¾ãã +ããããã®ãã¹ãã«ã¯ãã¡ãã£ã¨ããè¨è¿°çãªååã 2 çªç®ã®å¼æ°ã¨ãã¦ã +C<ok()> ã«ä¸ãããã¨ãåºæ¥ã¾ãã use Test::Simple tests => 2; @@ -308,8 +322,10 @@ =end original -ãã£ã¨ãç°¡åã«ãã¡ãã¨ãããã¹ããä½ãæ¹æ³ã¯ããã ããã¥ã¢ã«ã«æ¸ããã¦ãããã¨ããã¹ããã¾ã[3]ã -L<Date::ICal/SYNOPSIS>ããä½ããå¼ãã¦ãã¦ããããå ¨ã¦ãã¹ããã¾ããããã¡ãã£ã¨ãããã¨ã§ãã +ãã£ã¨ãç°¡åã«ãã¡ãã¨ãããã¹ããä½ãæ¹æ³ã¯ããã ããã¥ã¢ã«ã« +æ¸ããã¦ãããã¨ããã¹ããã¾ã[3]ã +L<Date::ICal/SYNOPSIS>ããä½ããå¼ãã¦ãã¦ããããå ¨ã¦ãã¹ããã¾ãããã +ã¡ãã£ã¨ãããã¨ã§ãã #!/usr/bin/perl -w @@ -359,9 +375,14 @@ =end original -ãã¼ã£ã¨ã失æ![4] C<Test::Simple>ã¯ãå½¹ã«ç«ã¤ãã¨ã«ãä½è¡ç®ã§å¤±æããã®ããç¥ããã¦ããã¾ãã -ããã©ãä»ã«ã¯ä½ãç¥ããã¾ããã17ãå¾ãªããã°ãªããªãã£ãã®ã§ãããããã¯ãªãã¾ããã§ãããä½ãå¾ãã®ã§ãããã?? -ãããã¾ããããããè¦ã¤ããã«ã¯ããããã¬ã¼ã§ãã¹ããåå®è¡ããªããã°ãªããããprintæã«æããªããã°ãªãã¾ããã +ãã¼ã£ã¨ã失æ![4] C<Test::Simple> ã¯ãå½¹ã«ç«ã¤ãã¨ã«ãä½è¡ç®ã§å¤±æããã®ãã +ç¥ããã¦ããã¾ãã +ããã©ãä»ã«ã¯ä½ãç¥ããã¾ããã +17ãå¾ãªããã°ãªããªãã£ãã®ã§ãããããã¯ãªãã¾ããã§ããã +ä½ãå¾ãã®ã§ãããã?? +ãããã¾ããã +ãããè¦ã¤ããã«ã¯ããããã¬ã¼ã§ãã¹ããåå®è¡ããªããã°ãªããããprint æã« +æããªããã°ãªãã¾ããã =begin original @@ -373,10 +394,10 @@ =end original -ãã®ä»£ããã«ãL<Test::Simple>ãããL<Test::More>ã«ããããã¾ãããã -C<Test::More> ã¯ã C<Test::Simple>ã®è¡ãå ¨ã¦ã®ãã¨ãè¡ãããããã£ã¨è¡ãã¾ã! -å®éãTest::Moreã¯ãC<Test::Simple>ãè¡ãæ¹æ³ãI<æ£ç¢ºã«>è¡ãã¾ãã -æåéããC<Test::Simple>ãåãå¤ããC<Test::More>ãããã«ç½®ããã¨ãåºæ¥ã¾ãã +ãã®ä»£ããã«ãL<Test::Simple> ãããL<Test::More> ã«ããããã¾ãããã +C<Test::More> ã¯ã C<Test::Simple> ã®è¡ãå ¨ã¦ã®ãã¨ãè¡ãããããã£ã¨è¡ãã¾ã! +å®éãTest::More ã¯ãC<Test::Simple> ãè¡ãæ¹æ³ãI<æ£ç¢ºã«>è¡ãã¾ãã +æåéããC<Test::Simple> ãåãå¤ããC<Test::More> ãããã«ç½®ããã¨ãåºæ¥ã¾ãã ã¡ããã©ããããã¨ãã¦ãããã¨ã§ãã =begin original @@ -389,12 +410,12 @@ =end original -C<Test::More> ã¯ãC<Test::Simple>ãããåãã¾ããæãéè¦ãªéãã¯ã -Test::Moreã¯ããåèã«ãªãããã«ãokãã¨è¨ãç¹ã§ãã -ä¸è¬çãªC<ok()>ã§ã»ã¨ãã©ãã¹ã¦ã®ãã¹ããæ¸ããã¨ãåºæ¥ã¾ããã -C<ok()>ã§ã¯ãä½ãééã£ã¦ããã®ããããã¾ããã -代ããã«ãC<is()>é¢æ°ã使ãã¾ããããC<is()>ã¯ã -ãããã®ãä»ã®ãã®ã¨åãã§ããã¨æãããã¨ç§ãã¡ã«å®£è¨ããã¾ã: +C<Test::More> ã¯ãC<Test::Simple> ãããåãã¾ãã +æãéè¦ãªéãã¯ãTest::More ã¯ããåèã«ãªãããã«ãokãã¨è¨ãç¹ã§ãã +ä¸è¬ç㪠C<ok()> ã§ã»ã¨ãã©ãã¹ã¦ã®ãã¹ããæ¸ããã¨ãåºæ¥ã¾ããã +C<ok()> ã§ã¯ãä½ãééã£ã¦ããã®ããããã¾ããã +代ããã«ãC<is()> é¢æ°ã使ãã¾ãããã +C<is()> ã¯ããããã®ãä»ã®ãã®ã¨åãã§ããã¨æãããã¨ç§ãã¡ã«å®£è¨ããã¾ã: use Test::More tests => 8; @@ -421,8 +442,8 @@ =end original -"C<$ical-E<gt>sec> 㯠47?" "C<$ical-E<gt>min> 㯠12?" 代ããã«ãC<is()>ã使ããã¨ã§ã -ããå¤ãã®æ å ±ãå¾ããã¨ãã§ãã¾ã: +"C<$ical-E<gt>sec> 㯠47?" "C<$ical-E<gt>min> 㯠12?" +代ããã«ãC<is()> ã使ããã¨ã§ãããå¤ãã®æ å ±ãå¾ããã¨ãã§ãã¾ã: 1..8 ok 1 - new() returned something @@ -446,8 +467,10 @@ =end original -ãã¯ãC<$ical-E<gt>day>ã¯ã16ãè¿ãã¾ããããæå¾ ãã¦ããã®ã¯ã17ã§ãã£ãã¨ç¥ããã¾ãã -ç´ æ©ããã§ãã¯ã«ããããã®ã³ã¼ãããã¾ãåããããã¹ããæ¸ãä¸ããã¨ãã«ãã¹ããããã示ãã¾ãã +ãã¯ãC<$ical-E<gt>day>ã¯ã16 ãè¿ãã¾ããããæå¾ ãã¦ããã®ã¯ã17 ã§ãã£ã㨠+ç¥ããã¾ãã +ç´ æ©ããã§ãã¯ã«ããããã®ã³ã¼ãããã¾ãåããããã¹ããæ¸ãä¸ããã¨ãã« +ãã¹ããããã示ãã¾ãã ãããå¤ãã¾ãããï¼ is( $ical->day, 16, ' day()' ); @@ -468,8 +491,10 @@ =end original -ãããã¯ãããã§ãããã¨è¨ã£ã種é¡ã®ãã¹ããããã¨ãã¯ãã¤ããC<is>ã使ãã¨ããã§ãã -C<is>ã¯ãé åã§ãåãã¾ãããã ããã¹ãã¯ãã¤ãã«ãã¹ã«ã©ã¼ã³ã³ããã¹ãã§åãã®ã§ã +ãããã¯ãããã§ãããã¨è¨ã£ã種é¡ã®ãã¹ããããã¨ãã¯ãã¤ããC<is> ã +使ãã¨ããã§ãã +C<is> ã¯ãé åã§ãåãã¾ãã +ãã ããã¹ãã¯ãã¤ãã«ãã¹ã«ã©ã¼ã³ã³ããã¹ãã§åãã®ã§ã 次ã®æ¹æ³ã§ãé åã®ä¸ã®è¦ç´ ãããã¤ãããããã¹ãã§ãã¾ã[5]ã is( @foo, 5, 'foo has 5 elements' ); @@ -487,8 +512,10 @@ =end original -ééãã¯ãã¨ã¦ã大åãªã¬ãã¹ã³ã«ãªãã¾ããã³ã¼ãã«ã¯ãã°ãããããã¹ãã¯ã³ã¼ãã§ããã -ããã«ããã¹ãã«ã¯ãã°ãããã失æãããã¹ãã¯ãã³ã¼ãã«ãã°ããããã¨ãæå³ãã¾ãã +ééãã¯ãã¨ã¦ã大åãªã¬ãã¹ã³ã«ãªãã¾ãã +ã³ã¼ãã«ã¯ãã°ãããããã¹ãã¯ã³ã¼ãã§ããã +ããã«ããã¹ãã«ã¯ãã°ãããã +失æãããã¹ãã¯ãã³ã¼ãã«ãã°ããããã¨ãæå³ãã¾ãã ãããããã¹ããééã£ã¦ããå¯è½æ§ãæé¤ãã¦ã¯ãªãã¾ããã =begin original @@ -502,8 +529,8 @@ åé¢ãææå°æ©ã«ããã ããã°ãè¦ã¤ããã®ã«è¦å´ãã¦ããããã¨ãã£ã¦ã ãã¹ããä¸æ£ç¢ºã§ããã¨æè¨ãããã¨ããèªæã«ããããªãããã«ã -ãã¹ããç¡å¹ã«ãããã¨ã¯ãæéã«ã¨ãããã®ã§ã¯ããã¾ããããä»äºããéãã¦ãé¿ããããã«ã -ãã¹ããç¡å¹ã«ãã¦ã¯ããã¾ããã +ãã¹ããç¡å¹ã«ãããã¨ã¯ãæéã«ã¨ãããã®ã§ã¯ããã¾ããããä»äºããéãã¦ã +é¿ããããã«ããã¹ããç¡å¹ã«ãã¦ã¯ããã¾ããã =head2 Testing lots of values @@ -519,9 +546,13 @@ =end original -å¤ãã®éã£ãã¨ãã¸ã±ã¼ã¹ã§ã³ã¼ãããã¹ããããã¨ããã¨ããå¤ãã®å¤ããã¹ããããã¨æãã¾ãã -1970年以åã§ã¯ãåãã ãããï¼2038å¹´ã®å¾ã¯ï¼1904年以åã¯ï¼10,000å¹´å¾ã«ããã©ãã«ãèµ·ãããï¼ -éå¹´ãæ£ããå¾ããããï¼ +å¤ãã®éã£ãã¨ãã¸ã±ã¼ã¹ã§ã³ã¼ãããã¹ããããã¨ããã¨ããå¤ãã®å¤ã +ãã¹ããããã¨æãã¾ãã +1970年以åã§ã¯ãåãã ãããï¼ +2038å¹´ã®å¾ã¯? +1904年以åã¯? +10,000å¹´å¾ã«ããã©ãã«ãèµ·ããã? +éå¹´ãæ£ããå¾ãããã? ä¸ã®ã³ã¼ããç¹°ãè¿ãç¶ããããã«ã¼ãã試ã¿ããããæå¾ ãããã¨ãåºæ¥ã¾ãã use Test::More tests => 32; @@ -566,11 +597,13 @@ =end original -ä»ãããã ãC<%ICal_Dates>ã«æ¥ä»ã®æãå ããã ãã§ããã¹ãã§ãã¾ãã +ä»ãããã ãC<%ICal_Dates> ã«æ¥ä»ã®æãå ããã ãã§ããã¹ãã§ãã¾ãã ãã¦ãããããã®æ¥ä»ããã¹ãããã®ãå°ãªãä»äºã«ãªãã¾ãããã èããããã«ããã ãæ¥ä»ãæããã ãã«ãããããããã¾ããã -å¯ä¸ã®åé¡ã¯ãæ¯åãC<use Test::More tests =E<gt> ##> ã®è¡ãã調ç¯ããªããã°ãªããªãäºã§ãã -ãã®ãã¨ã¯ãæ¥éã«ç ©éã«ãªãã§ããããããã¤ãã®æ¹æ³ã§ããã£ã¨ãã¾ãããã¾ãã +å¯ä¸ã®åé¡ã¯ãæ¯åãC<use Test::More tests =E<gt> ##> ã®è¡ãã +調ç¯ããªããã°ãªããªãäºã§ãã +ãã®ãã¨ã¯ãæ¥éã«ç ©éã«ãªãã§ãããã +ããã¤ãã®æ¹æ³ã§ããã£ã¨ãã¾ãããã¾ãã =begin original @@ -579,7 +612,7 @@ =end original -ä¸ã¤ãã®æ¹æ³ã¯ãC<plan()>é¢æ°ãåçã«ä½¿ã£ã¦ãè¨ç»ãè¨ç®ãã¾ãã +ä¸ã¤ãã®æ¹æ³ã¯ãC<plan()> é¢æ°ãåçã«ä½¿ã£ã¦ãè¨ç»ãè¨ç®ãã¾ãã use Test::More; use Date::ICal; @@ -600,8 +633,9 @@ =end original -ãããã¬ãã·ãã«ã«ãC<done_testing> ã使ãã¾ããããã«ããã -ããã¤ãã®ãã¹ãããã èµ°ããã¾ããããã¤ãªã®ãã¯ç¥ãã¾ãã[6]ã +ãããã¬ãã·ãã«ã«ãC<done_testing> ã使ãã¾ããããããã«ããã +ããã¤ãã®ãã¹ãããã èµ°ããã¾ãã +ããã¤ãªã®ãã¯ç¥ãã¾ãã[6]ã use Test::More; # instead of tests => 32 @@ -618,10 +652,10 @@ =end original -ãã©ã³ãç¹å®ããªãã¨ãC<Test::More>ã¯ãããã°ã©ã ãçµäºããåã«ã -C<done_testing()>ãããã¨æå¾ ãã¾ãããããæ¸ãå¿ãã¦ããã°è¦åãã¾ãã -C<done_testing()>ã«ãå®è¡ãããäºå®ã®ãã¹ãã®æ°ã渡ããã¨ãã§ãã¾ãã -åããæ°ãéã£ã¦ããã°ãC<Test::More>ã¯ãå¥ã®ç¨®é¡ã®è¦åãåºã¾ãã +ãã©ã³ãç¹å®ããªãã¨ãC<Test::More> ã¯ãããã°ã©ã ãçµäºããåã«ã +C<done_testing()> ãããã¨æå¾ ãã¾ãããããæ¸ãå¿ãã¦ããã°è¦åãã¾ãã +C<done_testing()> ã«ãå®è¡ãããäºå®ã®ãã¹ãã®æ°ã渡ããã¨ãã§ãã¾ãã +åããæ°ãéã£ã¦ããã°ãC<Test::More> ã¯ãå¥ã®ç¨®é¡ã®è¦åãåºã¾ãã =head2 Informative names @@ -645,7 +679,8 @@ =end original -ãã¹ããã¦ãããã¨ã¨ããã¹ããã¦ãã ICal ã¹ããªã³ã°èªèº«ã®è©³ç´°ããååã«å ãã¾ãã +ãã¹ããã¦ãããã¨ã¨ããã¹ããã¦ãã ICal ã¹ããªã³ã°èªèº«ã®è©³ç´°ããååã« +å ãã¾ãã 次ã®ãããªçµæãåºã¾ãï¼ ok 25 - new(ical => '19971024T120000') @@ -665,7 +700,8 @@ =end original -失æã®ä¸ã«ä½ããããªãããããä¸ã¤ã§ãããããã«ãã£ã¦ãåé¡ã追跡ããã®ãç°¡åã«ãªããã¨ããããã§ãããã +失æã®ä¸ã«ä½ããããªãããããä¸ã¤ã§ãããããã«ãã£ã¦ãåé¡ã追跡ããã®ã +ç°¡åã«ãªããã¨ããããã§ãããã ã¡ãã£ã¨ãããããã°æ å ±ããã¹ãã®ååã«å ¥ãã¦ã¿ã¦ä¸ããã =begin original @@ -676,7 +712,8 @@ =end original ãã®ãã¹ããä½ããã¹ãããããè¨è¿°ãã¦ããã°ã -失æãããã¹ãããããã°ããéãèªåãä»ã®äººããã¹ããå®è¡ããã®ããç°¡åã«ãªãã¾ãã +失æãããã¹ãããããã°ããéãèªåãä»ã®äººããã¹ããå®è¡ããã®ããç°¡åã« +ãªãã¾ãã =head2 Skipping tests @@ -689,7 +726,8 @@ =end original -Date::ICal ã§ç¨æããã¦ãããã¹ããæ¢ãåã£ã¦ãF<t/01sanity.t>ã«ã次ã®ãã®ãè¦ã¤ãã¾ãã[7]ã +Date::ICal ã§ç¨æããã¦ãããã¹ããæ¢ãåã£ã¦ãF<t/01sanity.t> ã«ã次ã®ãã®ã +è¦ã¤ãã¾ãã[7]ã #!/usr/bin/perl -w @@ -724,11 +762,13 @@ =end original -ããã¦ãã®éUNIX OS ã§ã¯ãã¨ããã¯ã®å§ã¾ããç°ãªã£ã¦ãã¾ã[8]ã -ã»ã¨ãã©ã®é¨åã§Perlã¯ãå·®ç°ããªããã¦ãã¾ãããããé¨åã§ã¯ãéã£ãããã«è¡ãã¾ãã -ä»ãæ£ç¢ºã«ã¯æãåºãã¾ããããMacPerlã¯ãã®ä¸ã¤ã ã¨æãã¾ã[9]ã -ãã ãã¹ãã«ã³ã¡ã³ããæ¸ãã¦ã失æããããã°ãã¦ããéã«ã誰ãããã¹ãèªããã¨ã -æå¾ ããããããã¯ã£ããã¨ã決ãã¦åããªãããã«è¨ãããã¹ããã¹ããããããã¨ãåºæ¥ã¾ãã +ããã¦ãã®é UNIX OS ã§ã¯ãã¨ããã¯ã®å§ã¾ããç°ãªã£ã¦ãã¾ã[8]ã +ã»ã¨ãã©ã®é¨å㧠Perl ã¯ãå·®ç°ããªããã¦ãã¾ãããããé¨åã§ã¯ãéã£ãããã« +è¡ãã¾ãã +ä»ãæ£ç¢ºã«ã¯æãåºãã¾ããããMacPerl ã¯ãã®ä¸ã¤ã ã¨æãã¾ã[9]ã +ãã ãã¹ãã«ã³ã¡ã³ããæ¸ãã¦ã失æããããã°ãã¦ããéã«ã +誰ãããã¹ãèªããã¨ãæå¾ ããããããã¯ã£ããã¨ã決ã㦠+åããªãããã«è¨ãããã¹ããã¹ããããããã¨ãåºæ¥ã¾ãã use Test::More tests => 7; use Date::ICal; @@ -766,10 +806,12 @@ =end original ããã§ãã¡ãã£ã¨ããéæ³ãèµ·ãã¾ãã -MacOS以å¤ã§åããå ´å,å ¨ã¦ã®ãã¹ãã¯æ®éã«ãã¹ãããã¾ãã -ããããMacOSä¸ã®å ´åãC<skip()>ã«ãã£ã¦ãSKIPãããã¯ã®ä¸ã®å ¨ã¦ã®å 容ãé£ã°ããã¾ãã +MacOS以å¤ã§åããå ´åãå ¨ã¦ã®ãã¹ãã¯æ®éã«ãã¹ãããã¾ãã +ããããMacOS ä¸ã®å ´åãC<skip()> ã«ãã£ã¦ãSKIP ãããã¯ã®ä¸ã®å ¨ã¦ã®å 容ã +é£ã°ããã¾ãã 決ãã¦åããã¨ã¯ããã¾ããã -ãããã«ãC<skip()>ã¯ãã¹ããã¹ãããããã¦ãããã¨ãTest::Harness ã«ä¼ããç¹å¥ãªåºåãããªã³ããã¾ãã +ãããã«ããã¹ããã¹ãããããã¦ãããã¨ã Test::Harness ã«ä¼ããç¹å¥ãª +åºåãããªã³ãããã¾ãã 1..7 ok 1 - Epoch time of 0 @@ -790,9 +832,11 @@ =end original -ããã¯ãMacOSä¸ã§,ãã¹ãã¯å¤±æããªãã¨ããæå³ã§ãã -ããã§ãMacPerlã®ã¦ã¼ã¶ã¼ããã®ãåããªãã¨åãã£ã¦ãããã¹ããåããªãã¨å ±åããemailãããå°ãªããªãã¾ãã -ãã¹ãã®ã¹ãããã«ã¤ãã¦æ éã«ãªãããã«ãã¹ãããã®ãã¹ãã¯ãåããªããI<決ãã¦åããªã>ãã¹ãã«å¯¾ãã¦ãããã®ã§ãã +ããã¯ãMacOS ä¸ã§ããã¹ãã¯å¤±æããªãã¨ããæå³ã§ãã +ããã§ãMacPerl ã®ã¦ã¼ã¶ã¼ããã®ãåããªãã¨åãã£ã¦ãããã¹ããåããªã㨠+å ±åãã email ãããå°ãªããªãã¾ãã +ãã¹ãã®ã¹ãããã«ã¤ãã¦æ éã«ãªãããã«ãã¹ãããã®ãã¹ãã¯ãåããªãã +I<決ãã¦åããªã>ãã¹ãã«å¯¾ãã¦ãããã®ã§ãã æ¬ç©ã®ãã°ãã¹ãããããçºã®ãã®ã§ã¯ããã¾ãã(ããã«ãããªãã§ããã)ã =begin original @@ -801,7 +845,8 @@ =end original -ãã®ãã¹ãã¯ãã¾ã£ãããå®å ¨ã«ã¹ãããããã¾ã[10]ã以ä¸ã®ã³ã¼ãã¯ãåãã¾ãã +ãã®ãã¹ãã¯ãã¾ã£ãããå®å ¨ã«ã¹ãããããã¾ã[10]ã +以ä¸ã®ã³ã¼ãã¯ãåãã¾ãã SKIP: { skip("I don't wanna die!"); @@ -820,7 +865,7 @@ =end original -C<Date::ICal>ã®manãã¼ã¸ããã£ã¨ç®ãéãã¦ãã¦ã次ã®ãã®ã«ééãã¾ãã: +C<Date::ICal> ã® man ãã¼ã¸ããã£ã¨ç®ãéãã¦ãã¦ã次ã®ãã®ã«ééãã¾ãã: ical @@ -836,7 +881,9 @@ =end original -ãåå¾ã¾ãã¯ã»ãããããµããDate::ICalã®ãã¹ãã§ãæ¥ä»ãã»ããããC<ical()> ã使ããã¹ããè¦ã¾ããã§ããã +ãåå¾ã¾ãã¯ã»ãããã +ãµããDate::ICalã®ãã¹ãã§ãæ¥ä»ãã»ãããã C<ical()> ã使ããã¹ãã +è¦ã¾ããã§ããã ç§ã¯ã次ã®ããã«æ¸ãã§ãããã use Test::More tests => 1; @@ -870,9 +917,11 @@ =end original -ãã¼ã£ã¨! å®è¡ãããªãããã ããã¦ããããä¿®æ£ããæéããªãã¨æ³å®ãã¾ãããã[11] -ãµã¤ãã¯ããã®ãã¹ããã³ã¡ã³ãã«ãã¦ãToDoãªã¹ãã«æ¸ãçãã¦ããã§ãããã -ãã®ä»£ããã«ãC<TODO>ãããã¯å ã§ã©ããã³ã°ãã¦ï¼å ãã§ï¼ãããã®ãã¹ãã失æãããã¨ããæãããªç¶æ ã«ãã¾ãããã +ãã¼ã£ã¨! +å®è¡ãããªãããã ããã¦ããããä¿®æ£ããæéããªãã¨æ³å®ãã¾ãããã[11] +ãµã¤ãã¯ããã®ãã¹ããã³ã¡ã³ãã«ãã¦ãToDo ãªã¹ãã«æ¸ãçãã¦ããã§ãããã +ãã®ä»£ããã«ãC<TODO> ãããã¯å ã§ã©ããã³ã°ãã¦ï¼å ãã§ï¼ãããã®ãã¹ãã +失æãããã¨ããæãããªç¶æ ã«ãã¾ãããã use Test::More tests => 1; @@ -907,10 +956,10 @@ =end original -C<Test::More>ã¯ããä¸ã¤ã®ãã¹ãã®ä¸ã®ä¸ã¤ã失æããããã ãã¨ã¯è¨ãã¾ããã +C<Test::More> ã¯ããä¸ã¤ã®ãã¹ãã®ä¸ã®ä¸ã¤ã失æããããã ãã¨ã¯è¨ãã¾ããã ãã®ã# TODOãã¯ãC<Test::Harness> ã«ãããã¯ã失æããã¨æããããã¨ä¼ãã -C<Test::Harness>ã¯ã失æãããã¹ããæåãããã¹ãã®ããã«æ±ãã¾ããããã§ã -ãã°ãä¿®æ£ããåã«ãã¹ããæ¸ããã¨ãã§ãã¾ãã +C<Test::Harness> ã¯ã失æãããã¹ããæåãããã¹ãã®ããã«æ±ãã¾ãã +ããã§ããã°ãä¿®æ£ããåã«ãã¹ããæ¸ããã¨ãã§ãã¾ãã =begin original @@ -920,8 +969,10 @@ =end original -ãããTODOãã¹ãããã¹ããã¨ãTest::Harness ã¯ããã¹ããããæããããæåãããã¨å ±åãã¾ãã -ãããèµ·ããã°ãC<local $TODO>ã§TODOãããã¯ãå¤ãã¦ãæ¬å½ã®ãã¹ãã«å¤ããã°è¯ãã§ãããã +ãããTODO ãã¹ãããã¹ããã¨ãTest::Harness ã¯ããã¹ããããæãããã +æåãããã¨å ±åãã¾ãã +ãããèµ·ããã°ãC<local $TODO> 㧠TODO ãããã¯ãå¤ãã¦ãæ¬å½ã®ãã¹ãã« +å¤ããã°è¯ãã§ãããã =head2 Testing with taint mode. @@ -939,11 +990,13 @@ =end original -æ±æã¢ã¼ãã¯æ¥½ãããã®ã§ããå ¨ã¦ã®å ¨ä½çãªç¹å¾´ã®ãªãã§ãããã£ã¨ãå ¨ä½çãªãã®ã§ãã -æ±æã¢ã¼ããä»ããã¨ãæ±æã¢ã¼ãã¯ãããã°ã©ã ã®å ¨ã¦ã®ã³ã¼ãã¨I<å ¨ã¦ã®>ã¢ã¸ã¥ã¼ã« -(ã¨ããããã使ã£ã¦ããI<å ¨ã¦ã®>ã¢ã¸ã¥ã¼ã«)ã«å½±é¿ãã¾ãã +æ±æã¢ã¼ãã¯æ¥½ãããã®ã§ãã +å ¨ã¦ã®å ¨ä½çãªç¹å¾´ã®ãªãã§ãããã£ã¨ãå ¨ä½çãªãã®ã§ãã +æ±æã¢ã¼ããä»ããã¨ãæ±æã¢ã¼ãã¯ãããã°ã©ã ã®å ¨ã¦ã®ã³ã¼ã㨠+I<å ¨ã¦ã®>ã¢ã¸ã¥ã¼ã«(ã¨ããããã使ã£ã¦ããI<å ¨ã¦ã®>ã¢ã¸ã¥ã¼ã«)ã«å½±é¿ãã¾ãã ã³ã¼ãã®ä¸ã¤ã§ããæ±æããã¦ããã°ãå ¨ã¦ãççºãã¾ãã -ãã®ãã¨ã念é ã«ç½®ãã¦ãæ±æã¢ã¼ãã®ä¸ã§ãã¢ã¸ã¥ã¼ã«ãåãã®ãä¿è¨¼ãããã¨ã¯ãã¨ã¦ãéè¦ã§ãã +ãã®ãã¨ã念é ã«ç½®ãã¦ãæ±æã¢ã¼ãã®ä¸ã§ãã¢ã¸ã¥ã¼ã«ãåãã®ãä¿è¨¼ãããã¨ã¯ã +ã¨ã¦ãéè¦ã§ãã =begin original @@ -954,8 +1007,8 @@ =end original ãã¹ãããæ±æã¢ã¼ãã§èµ°ãããã®ã¯ãã¨ã¦ãç°¡åã§ãã -C<#!>è¡ã«ãC<-T>ãæããã ãã§ããC<Test::Harness> ã¯ã -C<#!> è¡ã®ã¹ã¤ãããèªã¿ããã¹ãã§ãã®ã¹ã¤ããã使ãã¾ãã +C<#!>è¡ã«ãC<-T>ãæããã ãã§ãã +C<Test::Harness> ã¯ãC<#!> è¡ã®ã¹ã¤ãããèªã¿ããã¹ãã§ãã®ã¹ã¤ããã使ãã¾ãã #!/usr/bin/perl -Tw @@ -968,7 +1021,7 @@ =end original -C<make test>ãããã¨ããã¹ãã¯æ±æã¢ã¼ãã¨è¦åãæå¹ã«ãã¦èµ°ãã§ãããã +C<make test> ãããã¨ããã¹ãã¯æ±æã¢ã¼ãã¨è¦åãæå¹ã«ãã¦èµ°ãã§ãããã =head1 FOOTNOTES @@ -985,7 +1038,7 @@ =end original -æåã®æ°åã¯å®éä½ãæå³ãã¦ãã¾ãããã1ã§ãªããã°ããã¾ããã +æåã®æ°åã¯å®éä½ãæå³ãã¦ãã¾ãããã1 ã§ãªããã°ããã¾ããã éè¦ãªã®ã¯ã2çªç®ã®æ°åã§ãã =item 2 @@ -997,7 +1050,8 @@ =end original -以ä¸ã«é²ãããããã¼ã¸ã§ã³1.31ã使ãã¾ãããã®ãã¼ã¸ã§ã³ã«ã¯ããã°ãå°ã ããã¾ããã +以ä¸ã«é²ãããããã¼ã¸ã§ã³ 1.31 ã使ãã¾ãã +ãã®ãã¼ã¸ã§ã³ã«ã¯ããã°ãå°ã ããã¾ããã 大ä¸å¤«ã§ã -- ãã¹ãã§ãã°ãæããã«ãã¾ãããã =item 3 @@ -1010,7 +1064,7 @@ =end original å®éã«ããã®ã¹ãããããã£ã¨åãå ¥ããããã¥ã¢ã«èªèº«ããã¹ãã§ãã¾ãã -L<Test::Inline>ãè¦ãªããã (以åã® L<Pod::Tests>) +L<Test::Inline> ãè¦ã¦ãã ããã (以åã® L<Pod::Tests>) =item 4 @@ -1020,7 +1074,8 @@ =end original -ãã®ãã¹ãã«ã¯ãééããããã¾ããä½! ç§ããä»çµãã ã£ã¦ï¼ +ãã®ãã¹ãã«ã¯ãééããããã¾ãã +ä½! ç§ããä»çµãã ã£ã¦ï¼ =item 5 @@ -1045,9 +1100,11 @@ =end original ãããããã¹ãããã°ã©ã ãéä¸ã§æ»ãã ããä½ãèµ·ããã®ã ããã?! -ã©ããããã®ãã¹ããåããã¦ããã®ãæ¸ããªãã§ãã©ããã£ã¦å¤±æããã®ããããã ããã? -åé¡ããã¾ãããC<Test::More>ã¯ãããã¤ãã®éæ³ã使ãããã®æ»ãæããã -ãã¹ãã失æã«å¤ãã¾ãããã¨ããå ¨ã¦ã®ãã¹ããããã®å ´æã§ãã¹ããã¨ãã¦ãã +ã©ããããã®ãã¹ããåããã¦ããã®ãæ¸ããªãã§ãã©ããã£ã¦ +失æããã®ããããã ããã? +åé¡ããã¾ããã +C<Test::More> ã¯ãããã¤ãã®éæ³ã使ãããã®æ»ãæããããã¹ãã失æã«å¤ãã¾ãã +ãã¨ããå ¨ã¦ã®ãã¹ããããã®å ´æã§ãã¹ããã¨ãã¦ãã =item 7 @@ -1069,8 +1126,9 @@ =end original -ããã¦ãã®OSã¯ãããæ¥ä»ããã®ç§æ°ã¨ãã¦æéãè¨é²ãã¾ãã -ãã®æ¥ä»ããã¨ããã¯ã®å§ã¾ãã§ããUNIXã®ã¨ããã¯ã®å§ã¾ãã¯ãæ¨æºæã®1970å¹´ã®1æ1æ¥ã®æ·±å¤ã§ãã +ããã¦ãã® OS ã¯ãããæ¥ä»ããã®ç§æ°ã¨ãã¦æéãè¨é²ãã¾ãã +ãã®æ¥ä»ããã¨ããã¯ã®å§ã¾ãã§ãã +UNIX ã®ã¨ããã¯ã®å§ã¾ãã¯ãæ¨æºæã®1970å¹´ã®1æ1æ¥ã®æ·±å¤ã§ãã =item 9 @@ -1082,8 +1140,10 @@ =end original -MacOSã®ã¨ããã¯ã¯ã1904å¹´ã®1æ1æ¥ã®æ·±å¤ã§ããVMSã®ã¨ããã¯ã¯ã1858å¹´ã®11æ17æ¥ã®æ·±å¤ã§ãã -ã§ãããvmsperlã¯ãUNIXã®ã¨ããã¯ãã¨ãã¥ã¬ã¼ããã¦ããã®ã§ãåé¡ã¯ããã¾ããã +MacOS ã®ã¨ããã¯ã¯ã1904å¹´ã®1æ1æ¥ã®æ·±å¤ã§ãã +VMS ã®ã¨ããã¯ã¯ã1858å¹´ã®11æ17æ¥ã®æ·±å¤ã§ãã +ã§ãããvmsperl ã¯ãUNIX ã®ã¨ããã¯ãã¨ãã¥ã¬ã¼ããã¦ããã®ã§ãåé¡ã¯ +ããã¾ããã =item 10 @@ -1094,7 +1154,8 @@ =end original -SKIPãããã¯ã®ä¸ã«ã³ã¼ããå¨ãéããå°ãªãã¨ãã³ã³ãã¤ã«ããã¾ããã©ããã£ã¦ããã¯èããªãã§ä¸ããã +SKIP ãããã¯ã®ä¸ã«ã³ã¼ããå¨ãéããå°ãªãã¨ãã³ã³ãã¤ã«ããã¾ãã +ã©ããã£ã¦ããã¯èããªãã§ä¸ããã ãã£ã«ã¿ã¼ã§ã¯ããã¾ããã =item 11 @@ -1106,7 +1167,8 @@ =end original -ç°¡åãªãã°ãç´ãã®ãé¿ããããã®æ¹æ³ã¨ãã¦ãTODOãã¹ãã使ããã¨ãã¦ã¯ããã¾ãã! +ç°¡åãªãã°ãç´ãã®ãé¿ããããã®æ¹æ³ã¨ãã¦ãTODO ãã¹ãã +使ããã¨ãã¦ã¯ããã¾ãã! =back