dfect 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,13 +43,13 @@
43
43
  <dd>
44
44
  <ul>
45
45
 
46
- <li><a href="#M000001"><</a>,</li>
46
+ <li><a href="#M000008"><</a>,</li>
47
47
 
48
- <li><a href="#M000003"><<</a>,</li>
48
+ <li><a href="#M000010"><<</a>,</li>
49
49
 
50
- <li><a href="#M000002">></a>,</li>
50
+ <li><a href="#M000009">></a>,</li>
51
51
 
52
- <li><a href="#M000004">>></a></li>
52
+ <li><a href="#M000011">>></a></li>
53
53
 
54
54
  </ul>
55
55
  </dd>
@@ -58,11 +58,11 @@
58
58
  <dd>
59
59
  <ul>
60
60
 
61
- <li><a href="#M000012">C</a>,</li>
61
+ <li><a href="#M000019">C</a>,</li>
62
62
 
63
- <li><a href="#M000013">C!</a>,</li>
63
+ <li><a href="#M000020">C!</a>,</li>
64
64
 
65
- <li><a href="#M000014">C?</a></li>
65
+ <li><a href="#M000021">C?</a></li>
66
66
 
67
67
  </ul>
68
68
  </dd>
@@ -71,7 +71,7 @@
71
71
  <dd>
72
72
  <ul>
73
73
 
74
- <li><a href="#M000000">D</a></li>
74
+ <li><a href="#M000007">D</a></li>
75
75
 
76
76
  </ul>
77
77
  </dd>
@@ -80,11 +80,11 @@
80
80
  <dd>
81
81
  <ul>
82
82
 
83
- <li><a href="#M000009">E</a>,</li>
83
+ <li><a href="#M000016">E</a>,</li>
84
84
 
85
- <li><a href="#M000010">E!</a>,</li>
85
+ <li><a href="#M000017">E!</a>,</li>
86
86
 
87
- <li><a href="#M000011">E?</a></li>
87
+ <li><a href="#M000018">E?</a></li>
88
88
 
89
89
  </ul>
90
90
  </dd>
@@ -93,7 +93,7 @@
93
93
  <dd>
94
94
  <ul>
95
95
 
96
- <li><a href="#M000008">F?</a></li>
96
+ <li><a href="#M000015">F?</a></li>
97
97
 
98
98
  </ul>
99
99
  </dd>
@@ -102,11 +102,11 @@
102
102
  <dd>
103
103
  <ul>
104
104
 
105
- <li><a href="#M000005">T</a>,</li>
105
+ <li><a href="#M000012">T</a>,</li>
106
106
 
107
- <li><a href="#M000006">T!</a>,</li>
107
+ <li><a href="#M000013">T!</a>,</li>
108
108
 
109
- <li><a href="#M000007">T?</a></li>
109
+ <li><a href="#M000014">T?</a></li>
110
110
 
111
111
  </ul>
112
112
  </dd>
@@ -115,7 +115,7 @@
115
115
  <dd>
116
116
  <ul>
117
117
 
118
- <li><a href="#M000015">run</a></li>
118
+ <li><a href="#M000022">run</a></li>
119
119
 
120
120
  </ul>
121
121
  </dd>
@@ -124,7 +124,7 @@
124
124
  <dd>
125
125
  <ul>
126
126
 
127
- <li><a href="#M000016">stop</a></li>
127
+ <li><a href="#M000023">stop</a></li>
128
128
 
129
129
  </ul>
130
130
  </dd>
@@ -177,7 +177,7 @@ when this module is mixed-in:
177
177
  </td>
178
178
  <td class='attr-name'>report</td>
179
179
  <td class='attr-desc'><p>
180
- Hash of test results, assembled by <a href="Dfect.html#M000015">run</a>.
180
+ Hash of test results, assembled by <a href="Dfect.html#M000022">run</a>.
181
181
  </p>
182
182
  <dl>
183
183
  <dt>:execution</dt><dd>Hierarchical trace of all tests executed, where each test is represented by
@@ -232,7 +232,7 @@ Hash of choices that affect how <a href="Dfect.html">Dfect</a> operates.
232
232
  investigate them.
233
233
 
234
234
  <p>
235
- The default value is $DEBUG.
235
+ The default value is true.
236
236
  </p>
237
237
  </dd>
238
238
  <dt>:quiet</dt><dd>Do not print the report after executing all tests.
@@ -251,9 +251,9 @@ The default value is false.
251
251
  <div class="sectiontitle">Class Public methods</div>
252
252
 
253
253
  <div class="method">
254
- <div class="title" id="M000001">
254
+ <div class="title" id="M000008">
255
255
 
256
- <a name="M000001"></a><b> <(&block)
256
+ <a name="M000008"></a><b> <(&block)
257
257
  </b>
258
258
 
259
259
  </div>
@@ -279,13 +279,13 @@ this test.
279
279
 
280
280
  <div class="sourcecode">
281
281
  <p class="source-link">
282
- Source: <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source">show</a>
282
+ Source: <a href="javascript:toggleSource('M000008_source')" id="l_M000008_source">show</a>
283
283
 
284
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L138" target="_blank" class="github_url">on GitHub</a>
284
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L146" target="_blank" class="github_url">on GitHub</a>
285
285
 
286
286
  </p>
287
- <div id="M000001_source" class="dyn-source">
288
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 138</span>
287
+ <div id="M000008_source" class="dyn-source">
288
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 146</span>
289
289
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
290
290
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span>
291
291
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'block must be given'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
@@ -301,9 +301,9 @@ this test.
301
301
  </div>
302
302
 
303
303
  <div class="method">
304
- <div class="title" id="M000003">
304
+ <div class="title" id="M000010">
305
305
 
306
- <a name="M000003"></a><b>&lt;&lt;</b>(&amp;block)
306
+ <a name="M000010"></a><b>&lt;&lt;</b>(&amp;block)
307
307
 
308
308
  </div>
309
309
 
@@ -328,13 +328,13 @@ this test.
328
328
 
329
329
  <div class="sourcecode">
330
330
  <p class="source-link">
331
- Source: <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source">show</a>
331
+ Source: <a href="javascript:toggleSource('M000010_source')" id="l_M000010_source">show</a>
332
332
 
333
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L177" target="_blank" class="github_url">on GitHub</a>
333
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L185" target="_blank" class="github_url">on GitHub</a>
334
334
 
335
335
  </p>
336
- <div id="M000003_source" class="dyn-source">
337
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 177</span>
336
+ <div id="M000010_source" class="dyn-source">
337
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 185</span>
338
338
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
339
339
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'block must be given'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
340
340
  <span class="ruby-ivar">@curr_suite</span>.<span class="ruby-identifier">before_all</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">block</span>
@@ -345,9 +345,9 @@ this test.
345
345
  </div>
346
346
 
347
347
  <div class="method">
348
- <div class="title" id="M000002">
348
+ <div class="title" id="M000009">
349
349
 
350
- <a name="M000002"></a><b>&gt;</b>(&amp;block)
350
+ <a name="M000009"></a><b>&gt;</b>(&amp;block)
351
351
 
352
352
  </div>
353
353
 
@@ -372,13 +372,13 @@ test.
372
372
 
373
373
  <div class="sourcecode">
374
374
  <p class="source-link">
375
- Source: <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show</a>
375
+ Source: <a href="javascript:toggleSource('M000009_source')" id="l_M000009_source">show</a>
376
376
 
377
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L160" target="_blank" class="github_url">on GitHub</a>
377
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L168" target="_blank" class="github_url">on GitHub</a>
378
378
 
379
379
  </p>
380
- <div id="M000002_source" class="dyn-source">
381
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 160</span>
380
+ <div id="M000009_source" class="dyn-source">
381
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 168</span>
382
382
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&gt;</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
383
383
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'block must be given'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
384
384
  <span class="ruby-ivar">@curr_suite</span>.<span class="ruby-identifier">after_each</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">block</span>
@@ -389,9 +389,9 @@ test.
389
389
  </div>
390
390
 
391
391
  <div class="method">
392
- <div class="title" id="M000004">
392
+ <div class="title" id="M000011">
393
393
 
394
- <a name="M000004"></a><b>&gt;&gt;</b>(&amp;block)
394
+ <a name="M000011"></a><b>&gt;&gt;</b>(&amp;block)
395
395
 
396
396
  </div>
397
397
 
@@ -416,13 +416,13 @@ test.
416
416
 
417
417
  <div class="sourcecode">
418
418
  <p class="source-link">
419
- Source: <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show</a>
419
+ Source: <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show</a>
420
420
 
421
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L194" target="_blank" class="github_url">on GitHub</a>
421
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L202" target="_blank" class="github_url">on GitHub</a>
422
422
 
423
423
  </p>
424
- <div id="M000004_source" class="dyn-source">
425
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 194</span>
424
+ <div id="M000011_source" class="dyn-source">
425
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 202</span>
426
426
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&gt;&gt;</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
427
427
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'block must be given'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
428
428
  <span class="ruby-ivar">@curr_suite</span>.<span class="ruby-identifier">after_all</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">block</span>
@@ -433,9 +433,9 @@ test.
433
433
  </div>
434
434
 
435
435
  <div class="method">
436
- <div class="title" id="M000012">
436
+ <div class="title" id="M000019">
437
437
 
438
- <a name="M000012"></a><b>C</b>(message = nil, symbol = nil, &amp;block)
438
+ <a name="M000019"></a><b>C</b>(message = nil, symbol = nil, &amp;block)
439
439
 
440
440
  </div>
441
441
 
@@ -479,13 +479,13 @@ Otherwise, nil is returned.
479
479
 
480
480
  <div class="sourcecode">
481
481
  <p class="source-link">
482
- Source: <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show</a>
482
+ Source: <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show</a>
483
483
 
484
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L456" target="_blank" class="github_url">on GitHub</a>
484
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L464" target="_blank" class="github_url">on GitHub</a>
485
485
 
486
486
  </p>
487
- <div id="M000012_source" class="dyn-source">
488
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 456</span>
487
+ <div id="M000019_source" class="dyn-source">
488
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 464</span>
489
489
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">C</span> <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">symbol</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
490
490
  <span class="ruby-identifier">assert_catch</span> <span class="ruby-identifier">:assert</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">symbol</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
491
491
  <span class="ruby-keyword kw">end</span></pre>
@@ -495,9 +495,9 @@ Otherwise, nil is returned.
495
495
  </div>
496
496
 
497
497
  <div class="method">
498
- <div class="title" id="M000013">
498
+ <div class="title" id="M000020">
499
499
 
500
- <a name="M000013"></a><b>C!</b>(message = nil, symbol = nil, &amp;block)
500
+ <a name="M000020"></a><b>C!</b>(message = nil, symbol = nil, &amp;block)
501
501
 
502
502
  </div>
503
503
 
@@ -538,13 +538,13 @@ Returns nil, always.
538
538
 
539
539
  <div class="sourcecode">
540
540
  <p class="source-link">
541
- Source: <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show</a>
541
+ Source: <a href="javascript:toggleSource('M000020_source')" id="l_M000020_source">show</a>
542
542
 
543
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L487" target="_blank" class="github_url">on GitHub</a>
543
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L495" target="_blank" class="github_url">on GitHub</a>
544
544
 
545
545
  </p>
546
- <div id="M000013_source" class="dyn-source">
547
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 487</span>
546
+ <div id="M000020_source" class="dyn-source">
547
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 495</span>
548
548
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">C!</span> <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">symbol</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
549
549
  <span class="ruby-identifier">assert_catch</span> <span class="ruby-identifier">:negate</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">symbol</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
550
550
  <span class="ruby-keyword kw">end</span></pre>
@@ -554,9 +554,9 @@ Returns nil, always.
554
554
  </div>
555
555
 
556
556
  <div class="method">
557
- <div class="title" id="M000014">
557
+ <div class="title" id="M000021">
558
558
 
559
- <a name="M000014"></a><b>C?</b>(message = nil, symbol = nil, &amp;block)
559
+ <a name="M000021"></a><b>C?</b>(message = nil, symbol = nil, &amp;block)
560
560
 
561
561
  </div>
562
562
 
@@ -594,13 +594,13 @@ executed. Otherwise, returns false.
594
594
 
595
595
  <div class="sourcecode">
596
596
  <p class="source-link">
597
- Source: <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show</a>
597
+ Source: <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show</a>
598
598
 
599
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L515" target="_blank" class="github_url">on GitHub</a>
599
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L523" target="_blank" class="github_url">on GitHub</a>
600
600
 
601
601
  </p>
602
- <div id="M000014_source" class="dyn-source">
603
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 515</span>
602
+ <div id="M000021_source" class="dyn-source">
603
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 523</span>
604
604
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">C?</span> <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">symbol</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
605
605
  <span class="ruby-identifier">assert_catch</span> <span class="ruby-identifier">:sample</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">symbol</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
606
606
  <span class="ruby-keyword kw">end</span></pre>
@@ -610,9 +610,9 @@ executed. Otherwise, returns false.
610
610
  </div>
611
611
 
612
612
  <div class="method">
613
- <div class="title" id="M000000">
613
+ <div class="title" id="M000007">
614
614
 
615
- <a name="M000000"></a><b>D</b>(description = caller.first, &amp;block)
615
+ <a name="M000007"></a><b>D</b>(description = caller.first, &amp;block)
616
616
 
617
617
  </div>
618
618
 
@@ -656,13 +656,13 @@ A test may contain nested tests.
656
656
 
657
657
  <div class="sourcecode">
658
658
  <p class="source-link">
659
- Source: <a href="javascript:toggleSource('M000000_source')" id="l_M000000_source">show</a>
659
+ Source: <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source">show</a>
660
660
 
661
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L119" target="_blank" class="github_url">on GitHub</a>
661
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L127" target="_blank" class="github_url">on GitHub</a>
662
662
 
663
663
  </p>
664
- <div id="M000000_source" class="dyn-source">
665
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 119</span>
664
+ <div id="M000007_source" class="dyn-source">
665
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 127</span>
666
666
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">D</span> <span class="ruby-identifier">description</span> = <span class="ruby-identifier">caller</span>.<span class="ruby-identifier">first</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
667
667
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'block must be given'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
668
668
  <span class="ruby-ivar">@curr_suite</span>.<span class="ruby-identifier">tests</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Suite</span><span class="ruby-operator">::</span><span class="ruby-constant">Test</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">description</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">block</span>)
@@ -673,9 +673,9 @@ A test may contain nested tests.
673
673
  </div>
674
674
 
675
675
  <div class="method">
676
- <div class="title" id="M000009">
676
+ <div class="title" id="M000016">
677
677
 
678
- <a name="M000009"></a><b>E</b>(message = nil, *kinds, &amp;block)
678
+ <a name="M000016"></a><b>E</b>(message = nil, *kinds, &amp;block)
679
679
 
680
680
  </div>
681
681
 
@@ -729,13 +729,13 @@ StandardError).
729
729
 
730
730
  <div class="sourcecode">
731
731
  <p class="source-link">
732
- Source: <a href="javascript:toggleSource('M000009_source')" id="l_M000009_source">show</a>
732
+ Source: <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show</a>
733
733
 
734
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L344" target="_blank" class="github_url">on GitHub</a>
734
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L352" target="_blank" class="github_url">on GitHub</a>
735
735
 
736
736
  </p>
737
- <div id="M000009_source" class="dyn-source">
738
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 344</span>
737
+ <div id="M000016_source" class="dyn-source">
738
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 352</span>
739
739
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">E</span> <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">kinds</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
740
740
  <span class="ruby-identifier">assert_raise</span> <span class="ruby-identifier">:assert</span>, <span class="ruby-identifier">message</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">kinds</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
741
741
  <span class="ruby-keyword kw">end</span></pre>
@@ -745,9 +745,9 @@ StandardError).
745
745
  </div>
746
746
 
747
747
  <div class="method">
748
- <div class="title" id="M000010">
748
+ <div class="title" id="M000017">
749
749
 
750
- <a name="M000010"></a><b>E!</b>(message = nil, *kinds, &amp;block)
750
+ <a name="M000017"></a><b>E!</b>(message = nil, *kinds, &amp;block)
751
751
 
752
752
  </div>
753
753
 
@@ -801,13 +801,13 @@ StandardError).
801
801
 
802
802
  <div class="sourcecode">
803
803
  <p class="source-link">
804
- Source: <a href="javascript:toggleSource('M000010_source')" id="l_M000010_source">show</a>
804
+ Source: <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show</a>
805
805
 
806
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L386" target="_blank" class="github_url">on GitHub</a>
806
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L394" target="_blank" class="github_url">on GitHub</a>
807
807
 
808
808
  </p>
809
- <div id="M000010_source" class="dyn-source">
810
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 386</span>
809
+ <div id="M000017_source" class="dyn-source">
810
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 394</span>
811
811
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">E!</span> <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">kinds</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
812
812
  <span class="ruby-identifier">assert_raise</span> <span class="ruby-identifier">:negate</span>, <span class="ruby-identifier">message</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">kinds</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
813
813
  <span class="ruby-keyword kw">end</span></pre>
@@ -817,9 +817,9 @@ StandardError).
817
817
  </div>
818
818
 
819
819
  <div class="method">
820
- <div class="title" id="M000011">
820
+ <div class="title" id="M000018">
821
821
 
822
- <a name="M000011"></a><b>E?</b>(message = nil, *kinds, &amp;block)
822
+ <a name="M000018"></a><b>E?</b>(message = nil, *kinds, &amp;block)
823
823
 
824
824
  </div>
825
825
 
@@ -865,13 +865,13 @@ StandardError).
865
865
 
866
866
  <div class="sourcecode">
867
867
  <p class="source-link">
868
- Source: <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show</a>
868
+ Source: <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show</a>
869
869
 
870
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L421" target="_blank" class="github_url">on GitHub</a>
870
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L429" target="_blank" class="github_url">on GitHub</a>
871
871
 
872
872
  </p>
873
- <div id="M000011_source" class="dyn-source">
874
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 421</span>
873
+ <div id="M000018_source" class="dyn-source">
874
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 429</span>
875
875
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">E?</span> <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">kinds</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
876
876
  <span class="ruby-identifier">assert_raise</span> <span class="ruby-identifier">:sample</span>, <span class="ruby-identifier">message</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">kinds</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
877
877
  <span class="ruby-keyword kw">end</span></pre>
@@ -881,9 +881,9 @@ StandardError).
881
881
  </div>
882
882
 
883
883
  <div class="method">
884
- <div class="title" id="M000008">
884
+ <div class="title" id="M000015">
885
885
 
886
- <a name="M000008"></a><b>F?</b>(message = nil, &amp;block)
886
+ <a name="M000015"></a><b>F?</b>(message = nil, &amp;block)
887
887
 
888
888
  </div>
889
889
 
@@ -918,13 +918,13 @@ Otherwise, returns false.
918
918
 
919
919
  <div class="sourcecode">
920
920
  <p class="source-link">
921
- Source: <a href="javascript:toggleSource('M000008_source')" id="l_M000008_source">show</a>
921
+ Source: <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show</a>
922
922
 
923
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L301" target="_blank" class="github_url">on GitHub</a>
923
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L309" target="_blank" class="github_url">on GitHub</a>
924
924
 
925
925
  </p>
926
- <div id="M000008_source" class="dyn-source">
927
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 301</span>
926
+ <div id="M000015_source" class="dyn-source">
927
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 309</span>
928
928
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">F?</span> <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
929
929
  <span class="ruby-keyword kw">not</span> <span class="ruby-constant">T?</span> <span class="ruby-identifier">message</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
930
930
  <span class="ruby-keyword kw">end</span></pre>
@@ -934,9 +934,9 @@ Otherwise, returns false.
934
934
  </div>
935
935
 
936
936
  <div class="method">
937
- <div class="title" id="M000005">
937
+ <div class="title" id="M000012">
938
938
 
939
- <a name="M000005"></a><b>T</b>(message = nil, &amp;block)
939
+ <a name="M000012"></a><b>T</b>(message = nil, &amp;block)
940
940
 
941
941
  </div>
942
942
 
@@ -971,15 +971,15 @@ returns that result.
971
971
 
972
972
  <div class="sourcecode">
973
973
  <p class="source-link">
974
- Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
974
+ Source: <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show</a>
975
975
 
976
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L221" target="_blank" class="github_url">on GitHub</a>
976
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L229" target="_blank" class="github_url">on GitHub</a>
977
977
 
978
978
  </p>
979
- <div id="M000005_source" class="dyn-source">
980
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 221</span>
979
+ <div id="M000012_source" class="dyn-source">
980
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 229</span>
981
981
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">T</span> <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
982
- <span class="ruby-identifier">assert_block</span> <span class="ruby-identifier">:assert</span>, <span class="ruby-identifier">message</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
982
+ <span class="ruby-identifier">assert_yield</span> <span class="ruby-identifier">:assert</span>, <span class="ruby-identifier">message</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
983
983
  <span class="ruby-keyword kw">end</span></pre>
984
984
  </div>
985
985
  </div>
@@ -987,9 +987,9 @@ returns that result.
987
987
  </div>
988
988
 
989
989
  <div class="method">
990
- <div class="title" id="M000006">
990
+ <div class="title" id="M000013">
991
991
 
992
- <a name="M000006"></a><b>T!</b>(message = nil, &amp;block)
992
+ <a name="M000013"></a><b>T!</b>(message = nil, &amp;block)
993
993
 
994
994
  </div>
995
995
 
@@ -1024,15 +1024,15 @@ returns that result.
1024
1024
 
1025
1025
  <div class="sourcecode">
1026
1026
  <p class="source-link">
1027
- Source: <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show</a>
1027
+ Source: <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show</a>
1028
1028
 
1029
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L247" target="_blank" class="github_url">on GitHub</a>
1029
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L255" target="_blank" class="github_url">on GitHub</a>
1030
1030
 
1031
1031
  </p>
1032
- <div id="M000006_source" class="dyn-source">
1033
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 247</span>
1032
+ <div id="M000013_source" class="dyn-source">
1033
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 255</span>
1034
1034
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">T!</span> <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
1035
- <span class="ruby-identifier">assert_block</span> <span class="ruby-identifier">:negate</span>, <span class="ruby-identifier">message</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
1035
+ <span class="ruby-identifier">assert_yield</span> <span class="ruby-identifier">:negate</span>, <span class="ruby-identifier">message</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
1036
1036
  <span class="ruby-keyword kw">end</span></pre>
1037
1037
  </div>
1038
1038
  </div>
@@ -1040,9 +1040,9 @@ returns that result.
1040
1040
  </div>
1041
1041
 
1042
1042
  <div class="method">
1043
- <div class="title" id="M000007">
1043
+ <div class="title" id="M000014">
1044
1044
 
1045
- <a name="M000007"></a><b>T?</b>(message = nil, &amp;block)
1045
+ <a name="M000014"></a><b>T?</b>(message = nil, &amp;block)
1046
1046
 
1047
1047
  </div>
1048
1048
 
@@ -1077,15 +1077,15 @@ Otherwise, returns false.
1077
1077
 
1078
1078
  <div class="sourcecode">
1079
1079
  <p class="source-link">
1080
- Source: <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source">show</a>
1080
+ Source: <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show</a>
1081
1081
 
1082
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L272" target="_blank" class="github_url">on GitHub</a>
1082
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L280" target="_blank" class="github_url">on GitHub</a>
1083
1083
 
1084
1084
  </p>
1085
- <div id="M000007_source" class="dyn-source">
1086
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 272</span>
1085
+ <div id="M000014_source" class="dyn-source">
1086
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 280</span>
1087
1087
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">T?</span> <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
1088
- <span class="ruby-identifier">assert_block</span> <span class="ruby-identifier">:sample</span>, <span class="ruby-identifier">message</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
1088
+ <span class="ruby-identifier">assert_yield</span> <span class="ruby-identifier">:sample</span>, <span class="ruby-identifier">message</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
1089
1089
  <span class="ruby-keyword kw">end</span></pre>
1090
1090
  </div>
1091
1091
  </div>
@@ -1093,9 +1093,9 @@ Otherwise, returns false.
1093
1093
  </div>
1094
1094
 
1095
1095
  <div class="method">
1096
- <div class="title" id="M000015">
1096
+ <div class="title" id="M000022">
1097
1097
 
1098
- <a name="M000015"></a><b>run</b>()
1098
+ <a name="M000022"></a><b>run</b>(continue = true)
1099
1099
 
1100
1100
  </div>
1101
1101
 
@@ -1104,6 +1104,12 @@ Otherwise, returns false.
1104
1104
  Executes all tests defined thus far and stores the results in <a
1105
1105
  href="Dfect.html#report">report</a>.
1106
1106
  </p>
1107
+ <h4>Parameters</h4>
1108
+ <dl>
1109
+ <dt>continue</dt><dd>If true, results from previous executions will not be cleared.
1110
+
1111
+ </dd>
1112
+ </dl>
1107
1113
 
1108
1114
  </div>
1109
1115
 
@@ -1112,23 +1118,23 @@ href="Dfect.html#report">report</a>.
1112
1118
 
1113
1119
  <div class="sourcecode">
1114
1120
  <p class="source-link">
1115
- Source: <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show</a>
1121
+ Source: <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show</a>
1116
1122
 
1117
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L522" target="_blank" class="github_url">on GitHub</a>
1123
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L535" target="_blank" class="github_url">on GitHub</a>
1118
1124
 
1119
1125
  </p>
1120
- <div id="M000015_source" class="dyn-source">
1121
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 522</span>
1122
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
1126
+ <div id="M000022_source" class="dyn-source">
1127
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 535</span>
1128
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span> <span class="ruby-identifier">continue</span> = <span class="ruby-keyword kw">true</span>
1123
1129
  <span class="ruby-comment cmt"># clear previous results</span>
1124
- <span class="ruby-ivar">@exec_stats</span>.<span class="ruby-identifier">clear</span>
1125
- <span class="ruby-ivar">@exec_trace</span>.<span class="ruby-identifier">clear</span>
1126
- <span class="ruby-ivar">@test_stack</span>.<span class="ruby-identifier">clear</span>
1130
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">continue</span>
1131
+ <span class="ruby-ivar">@exec_stats</span>.<span class="ruby-identifier">clear</span>
1132
+ <span class="ruby-ivar">@exec_trace</span>.<span class="ruby-identifier">clear</span>
1133
+ <span class="ruby-ivar">@test_stack</span>.<span class="ruby-identifier">clear</span>
1134
+ <span class="ruby-keyword kw">end</span>
1127
1135
 
1128
1136
  <span class="ruby-comment cmt"># make new results</span>
1129
- <span class="ruby-identifier">catch</span> <span class="ruby-identifier">:stop_dfect_execution</span> <span class="ruby-keyword kw">do</span>
1130
- <span class="ruby-identifier">execute</span>
1131
- <span class="ruby-keyword kw">end</span>
1137
+ <span class="ruby-identifier">catch</span>(<span class="ruby-identifier">:stop_dfect_execution</span>) { <span class="ruby-identifier">execute</span> }
1132
1138
 
1133
1139
  <span class="ruby-comment cmt"># print new results</span>
1134
1140
  <span class="ruby-identifier">puts</span> <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">to_yaml</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:quiet</span>]
@@ -1139,15 +1145,15 @@ href="Dfect.html#report">report</a>.
1139
1145
  </div>
1140
1146
 
1141
1147
  <div class="method">
1142
- <div class="title" id="M000016">
1148
+ <div class="title" id="M000023">
1143
1149
 
1144
- <a name="M000016"></a><b>stop</b>()
1150
+ <a name="M000023"></a><b>stop</b>()
1145
1151
 
1146
1152
  </div>
1147
1153
 
1148
1154
  <div class="description">
1149
1155
  <p>
1150
- Stops the execution of the <a href="Dfect.html#M000015">run</a> method or
1156
+ Stops the execution of the <a href="Dfect.html#M000022">run</a> method or
1151
1157
  raises an exception if that method is not currently executing.
1152
1158
  </p>
1153
1159
 
@@ -1158,13 +1164,13 @@ raises an exception if that method is not currently executing.
1158
1164
 
1159
1165
  <div class="sourcecode">
1160
1166
  <p class="source-link">
1161
- Source: <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show</a>
1167
+ Source: <a href="javascript:toggleSource('M000023_source')" id="l_M000023_source">show</a>
1162
1168
 
1163
- | <a href="http://github.com/sunaku/dfect/blob/574a471b9687d6f0aac490200081f0dcd5db8a58/lib/dfect.rb#L541" target="_blank" class="github_url">on GitHub</a>
1169
+ | <a href="http://github.com/sunaku/dfect/blob/2c7eb188cd22bed27ee01277bac4d40203bd93f2/lib/dfect.rb#L554" target="_blank" class="github_url">on GitHub</a>
1164
1170
 
1165
1171
  </p>
1166
- <div id="M000016_source" class="dyn-source">
1167
- <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 541</span>
1172
+ <div id="M000023_source" class="dyn-source">
1173
+ <pre><span class="ruby-comment cmt"># File lib/dfect.rb, line 554</span>
1168
1174
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>
1169
1175
  <span class="ruby-identifier">throw</span> <span class="ruby-identifier">:stop_dfect_execution</span>
1170
1176
  <span class="ruby-keyword kw">end</span></pre>