diff --git a/runtime/parrot/library/Test/Builder/Test.pir b/runtime/parrot/library/Test/Builder/Test.pir
index 405450e..458a461 100644
|
a
|
b
|
|
| 323 | 323 | |
| 324 | 324 | .sub report :method |
| 325 | 325 | .local pmc passed |
| 326 | | .local pmc description |
| | 326 | .local pmc reason |
| 327 | 327 | .local pmc number |
| 328 | 328 | .local string report |
| 329 | | .local string number_string |
| 330 | | .local string desc_string |
| 331 | 329 | |
| 332 | 330 | passed = self.'passed'() |
| 333 | 331 | number = self.'number'() |
| 334 | | description = self.'description'() |
| 335 | 332 | report = '' |
| 336 | | number_string = number |
| 337 | | desc_string = description |
| 338 | 333 | |
| 339 | 334 | if passed goto PASSED |
| 340 | 335 | report = 'not ' |
| 341 | 336 | |
| 342 | 337 | PASSED: |
| 343 | 338 | concat report, 'ok ' |
| 344 | | concat report, number_string |
| 345 | | concat report, ' # TODO' |
| 346 | | |
| 347 | | unless description goto REPORT |
| 348 | | concat report, ' ' |
| 349 | | concat report, desc_string |
| | 339 | $S0 = number |
| | 340 | concat report, $S0 |
| | 341 | concat report, ' # TODO ' |
| | 342 | |
| | 343 | $S0 = self.'reason'() |
| | 344 | concat report, $S0 |
| | 345 | |
| | 346 | if passed goto REPORT |
| | 347 | # Build long explanation why |
| | 348 | report .= "\n\tFailed (TODO) test '" |
| | 349 | $S0 = self.'description'() |
| | 350 | report .= $S0 |
| | 351 | report .= "'" |
| 350 | 352 | |
| 351 | 353 | REPORT: |
| 352 | 354 | .return( report ) |
diff --git a/t/library/test_more.t b/t/library/test_more.t
index cb5cc3b..e2ddefa 100644
|
a
|
b
|
|
| 797 | 797 | .local pmc test |
| 798 | 798 | test = new [ 'Test'; 'Builder' ] |
| 799 | 799 | |
| 800 | | test_out( 'ok 8 # TODO passing test' ) |
| | 800 | test_out( 'ok 8 # TODO todo reason' ) |
| 801 | 801 | test.'todo'( 1, 'passing test', 'todo reason' ) |
| 802 | 802 | test_test( 'todo test should pass, marked as TODO' ) |
| 803 | 803 | |
| 804 | | test_out( 'not ok 9 # TODO failing test' ) |
| | 804 | test_out( "not ok 9 # TODO todo reason\n\tFailed (TODO) test 'failing test'" ) |
| 805 | 805 | test.'todo'( 0, 'failing test', 'todo reason' ) |
| 806 | 806 | test_test( 'todo test should fail, marked as TODO' ) |
| 807 | 807 | |
| 808 | | test_out( 'ok 10 # TODO passing test' ) |
| | 808 | test_out( 'ok 10 # TODO todo reason' ) |
| 809 | 809 | todo( 1, 'passing test', 'todo reason' ) |
| 810 | 810 | test_test( 'todo test should pass, marked as TODO' ) |
| 811 | 811 | |
| 812 | | test_out( 'not ok 11 # TODO failing test' ) |
| | 812 | test_out( "not ok 11 # TODO todo reason\n\tFailed (TODO) test 'failing test'" ) |
| 813 | 813 | todo( 0, 'failing test', 'todo reason' ) |
| 814 | 814 | test_test( 'todo test should fail, marked as TODO' ) |
| 815 | 815 | |
| 816 | | test_out( 'not ok 12 # TODO' ) |
| | 816 | test_out( "not ok 12 # TODO \n\tFailed (TODO) test ''" ) |
| 817 | 817 | todo( 0 ) |
| 818 | 818 | test_test( 'todo test with no description or reason' ) |
| 819 | 819 | |