Parent

Methods

Included Modules

TestEmbeddingSections

Test level sections embedded

Public Instance Methods

setup() click to toggle source
    # File test/EmbeddedSections/EmbeddedSections.rb, line 16
16:   def setup
17:     setRootDir(File.dirname(__FILE__))
18:   end
testCommentInEmbedded2() click to toggle source

Test basic embedding a comment

    # File test/EmbeddedSections/EmbeddedSections.rb, line 21
21:   def testCommentInEmbedded2
22:     RCodeLeveler::setLevel(2)
23:     requireFile('CommentInEmbedded')
24:     assert_equal(nil,$Var1)
25:     assert_equal(nil,$Var2)
26:   end
testCommentInEmbedded4() click to toggle source
    # File test/EmbeddedSections/EmbeddedSections.rb, line 27
27:   def testCommentInEmbedded4
28:     RCodeLeveler::setLevel(4)
29:     requireFile('CommentInEmbedded')
30:     assert_equal(1,$Var1)
31:     assert_equal(nil,$Var2)
32:   end
testCommentInEmbedded6() click to toggle source
    # File test/EmbeddedSections/EmbeddedSections.rb, line 33
33:   def testCommentInEmbedded6
34:     RCodeLeveler::setLevel(6)
35:     requireFile('CommentInEmbedded')
36:     assert_equal(1,$Var1)
37:     assert_equal(1,$Var2)
38:   end
testDefaultEmbeddingRubyUncomment2F() click to toggle source

Test default level embedding a ruby uncomment

     # File test/EmbeddedSections/EmbeddedSections.rb, line 121
121:   def testDefaultEmbeddingRubyUncomment2F
122:     RCodeLeveler::setLevel(2)
123:     $CondVar = false
124:     requireFile('DefaultEmbeddingRuby')
125:     assert_equal(nil,$Var1)
126:     assert_equal(nil,$Var2)
127:   end
testDefaultEmbeddingRubyUncomment2T() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 135
135:   def testDefaultEmbeddingRubyUncomment2T
136:     RCodeLeveler::setLevel(2)
137:     $CondVar = true
138:     requireFile('DefaultEmbeddingRuby')
139:     assert_equal(nil,$Var1)
140:     assert_equal(nil,$Var2)
141:   end
testDefaultEmbeddingRubyUncomment4F() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 128
128:   def testDefaultEmbeddingRubyUncomment4F
129:     RCodeLeveler::setLevel(4)
130:     $CondVar = false
131:     requireFile('DefaultEmbeddingRuby')
132:     assert_equal(1,$Var1)
133:     assert_equal(nil,$Var2)
134:   end
testDefaultEmbeddingRubyUncomment4T() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 142
142:   def testDefaultEmbeddingRubyUncomment4T
143:     RCodeLeveler::setLevel(4)
144:     $CondVar = true
145:     requireFile('DefaultEmbeddingRuby')
146:     assert_equal(1,$Var1)
147:     assert_equal(1,$Var2)
148:   end
testEmbedLowerLevelDifferentCategory0() click to toggle source

Test embedding 2 different categories, with a lower level inside

     # File test/EmbeddedSections/EmbeddedSections.rb, line 555
555:   def testEmbedLowerLevelDifferentCategory0
556:     RCodeLeveler::setLevel(4,'Cat1')
557:     RCodeLeveler::setLevel(2,'Cat2')
558:     requireFile('EmbedLowerLevelDifferentCategory')
559:     assert_equal(nil,$Var1)
560:     assert_equal(nil,$Var2)
561:   end
testEmbedLowerLevelDifferentCategory1() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 562
562:   def testEmbedLowerLevelDifferentCategory1
563:     RCodeLeveler::setLevel(6,'Cat1')
564:     RCodeLeveler::setLevel(2,'Cat2')
565:     requireFile('EmbedLowerLevelDifferentCategory')
566:     assert_equal(1,$Var1)
567:     assert_equal(nil,$Var2)
568:   end
testEmbedLowerLevelDifferentCategory12() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 576
576:   def testEmbedLowerLevelDifferentCategory12
577:     RCodeLeveler::setLevel(6,'Cat1')
578:     RCodeLeveler::setLevel(4,'Cat2')
579:     requireFile('EmbedLowerLevelDifferentCategory')
580:     assert_equal(1,$Var1)
581:     assert_equal(1,$Var2)
582:   end
testEmbedLowerLevelDifferentCategory2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 569
569:   def testEmbedLowerLevelDifferentCategory2
570:     RCodeLeveler::setLevel(4,'Cat1')
571:     RCodeLeveler::setLevel(4,'Cat2')
572:     requireFile('EmbedLowerLevelDifferentCategory')
573:     assert_equal(nil,$Var1)
574:     assert_equal(nil,$Var2)
575:   end
testEmbedded3LevelsDifferentCategories0() click to toggle source

Test embedding 3 levels of different categories

     # File test/EmbeddedSections/EmbeddedSections.rb, line 151
151:   def testEmbedded3LevelsDifferentCategories0
152:     RCodeLeveler::setLevel(2,'Cat1')
153:     RCodeLeveler::setLevel(4,'Cat2')
154:     RCodeLeveler::setLevel(6,'Cat3')
155:     requireFile('Embedded3LevelsDifferentCategories')
156:     assert_equal(nil,$Var1)
157:     assert_equal(nil,$Var2)
158:     assert_equal(nil,$Var3)
159:   end
testEmbedded3LevelsDifferentCategories1() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 160
160:   def testEmbedded3LevelsDifferentCategories1
161:     RCodeLeveler::setLevel(4,'Cat1')
162:     RCodeLeveler::setLevel(4,'Cat2')
163:     RCodeLeveler::setLevel(6,'Cat3')
164:     requireFile('Embedded3LevelsDifferentCategories')
165:     assert_equal(1,$Var1)
166:     assert_equal(nil,$Var2)
167:     assert_equal(nil,$Var3)
168:   end
testEmbedded3LevelsDifferentCategories12() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 187
187:   def testEmbedded3LevelsDifferentCategories12
188:     RCodeLeveler::setLevel(4,'Cat1')
189:     RCodeLeveler::setLevel(6,'Cat2')
190:     RCodeLeveler::setLevel(6,'Cat3')
191:     requireFile('Embedded3LevelsDifferentCategories')
192:     assert_equal(1,$Var1)
193:     assert_equal(1,$Var2)
194:     assert_equal(nil,$Var3)
195:   end
testEmbedded3LevelsDifferentCategories123() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 214
214:   def testEmbedded3LevelsDifferentCategories123
215:     RCodeLeveler::setLevel(4,'Cat1')
216:     RCodeLeveler::setLevel(6,'Cat2')
217:     RCodeLeveler::setLevel(8,'Cat3')
218:     requireFile('Embedded3LevelsDifferentCategories')
219:     assert_equal(1,$Var1)
220:     assert_equal(1,$Var2)
221:     assert_equal(1,$Var3)
222:   end
testEmbedded3LevelsDifferentCategories13() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 196
196:   def testEmbedded3LevelsDifferentCategories13
197:     RCodeLeveler::setLevel(4,'Cat1')
198:     RCodeLeveler::setLevel(4,'Cat2')
199:     RCodeLeveler::setLevel(8,'Cat3')
200:     requireFile('Embedded3LevelsDifferentCategories')
201:     assert_equal(1,$Var1)
202:     assert_equal(nil,$Var2)
203:     assert_equal(nil,$Var3)
204:   end
testEmbedded3LevelsDifferentCategories2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 169
169:   def testEmbedded3LevelsDifferentCategories2
170:     RCodeLeveler::setLevel(2,'Cat1')
171:     RCodeLeveler::setLevel(6,'Cat2')
172:     RCodeLeveler::setLevel(6,'Cat3')
173:     requireFile('Embedded3LevelsDifferentCategories')
174:     assert_equal(nil,$Var1)
175:     assert_equal(nil,$Var2)
176:     assert_equal(nil,$Var3)
177:   end
testEmbedded3LevelsDifferentCategories23() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 205
205:   def testEmbedded3LevelsDifferentCategories23
206:     RCodeLeveler::setLevel(2,'Cat1')
207:     RCodeLeveler::setLevel(6,'Cat2')
208:     RCodeLeveler::setLevel(8,'Cat3')
209:     requireFile('Embedded3LevelsDifferentCategories')
210:     assert_equal(nil,$Var1)
211:     assert_equal(nil,$Var2)
212:     assert_equal(nil,$Var3)
213:   end
testEmbedded3LevelsDifferentCategories3() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 178
178:   def testEmbedded3LevelsDifferentCategories3
179:     RCodeLeveler::setLevel(2,'Cat1')
180:     RCodeLeveler::setLevel(4,'Cat2')
181:     RCodeLeveler::setLevel(8,'Cat3')
182:     requireFile('Embedded3LevelsDifferentCategories')
183:     assert_equal(nil,$Var1)
184:     assert_equal(nil,$Var2)
185:     assert_equal(nil,$Var3)
186:   end
testEmbedded3LevelsDifferentCategoryBetween0() click to toggle source

Test embedding 3 levels with 1 different category between

     # File test/EmbeddedSections/EmbeddedSections.rb, line 225
225:   def testEmbedded3LevelsDifferentCategoryBetween0
226:     RCodeLeveler::setLevel(2,'Cat1')
227:     RCodeLeveler::setLevel(4,'Cat2')
228:     requireFile('Embedded3LevelsDifferentCategoryBetween')
229:     assert_equal(nil,$Var1)
230:     assert_equal(nil,$Var2)
231:     assert_equal(nil,$Var3)
232:   end
testEmbedded3LevelsDifferentCategoryBetween1() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 233
233:   def testEmbedded3LevelsDifferentCategoryBetween1
234:     RCodeLeveler::setLevel(4,'Cat1')
235:     RCodeLeveler::setLevel(4,'Cat2')
236:     requireFile('Embedded3LevelsDifferentCategoryBetween')
237:     assert_equal(1,$Var1)
238:     assert_equal(nil,$Var2)
239:     assert_equal(nil,$Var3)
240:   end
testEmbedded3LevelsDifferentCategoryBetween12() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 249
249:   def testEmbedded3LevelsDifferentCategoryBetween12
250:     RCodeLeveler::setLevel(4,'Cat1')
251:     RCodeLeveler::setLevel(6,'Cat2')
252:     requireFile('Embedded3LevelsDifferentCategoryBetween')
253:     assert_equal(1,$Var1)
254:     assert_equal(1,$Var2)
255:     assert_equal(nil,$Var3)
256:   end
testEmbedded3LevelsDifferentCategoryBetween123() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 265
265:   def testEmbedded3LevelsDifferentCategoryBetween123
266:     RCodeLeveler::setLevel(8,'Cat1')
267:     RCodeLeveler::setLevel(6,'Cat2')
268:     requireFile('Embedded3LevelsDifferentCategoryBetween')
269:     assert_equal(1,$Var1)
270:     assert_equal(1,$Var2)
271:     assert_equal(1,$Var3)
272:   end
testEmbedded3LevelsDifferentCategoryBetween13() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 257
257:   def testEmbedded3LevelsDifferentCategoryBetween13
258:     RCodeLeveler::setLevel(8,'Cat1')
259:     RCodeLeveler::setLevel(4,'Cat2')
260:     requireFile('Embedded3LevelsDifferentCategoryBetween')
261:     assert_equal(1,$Var1)
262:     assert_equal(nil,$Var2)
263:     assert_equal(nil,$Var3)
264:   end
testEmbedded3LevelsDifferentCategoryBetween2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 241
241:   def testEmbedded3LevelsDifferentCategoryBetween2
242:     RCodeLeveler::setLevel(2,'Cat1')
243:     RCodeLeveler::setLevel(6,'Cat2')
244:     requireFile('Embedded3LevelsDifferentCategoryBetween')
245:     assert_equal(nil,$Var1)
246:     assert_equal(nil,$Var2)
247:     assert_equal(nil,$Var3)
248:   end
testEmbedded3LevelsSameCategory0() click to toggle source

Test embedding 3 levels of the same category

     # File test/EmbeddedSections/EmbeddedSections.rb, line 275
275:   def testEmbedded3LevelsSameCategory0
276:     RCodeLeveler::setLevel(2,'MyCat')
277:     requireFile('Embedded3LevelsSameCategory')
278:     assert_equal(nil,$Var1)
279:     assert_equal(nil,$Var2)
280:     assert_equal(nil,$Var3)
281:   end
testEmbedded3LevelsSameCategory1() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 282
282:   def testEmbedded3LevelsSameCategory1
283:     RCodeLeveler::setLevel(4,'MyCat')
284:     requireFile('Embedded3LevelsSameCategory')
285:     assert_equal(1,$Var1)
286:     assert_equal(nil,$Var2)
287:     assert_equal(nil,$Var3)
288:   end
testEmbedded3LevelsSameCategory12() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 289
289:   def testEmbedded3LevelsSameCategory12
290:     RCodeLeveler::setLevel(6,'MyCat')
291:     requireFile('Embedded3LevelsSameCategory')
292:     assert_equal(1,$Var1)
293:     assert_equal(1,$Var2)
294:     assert_equal(nil,$Var3)
295:   end
testEmbedded3LevelsSameCategory123() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 296
296:   def testEmbedded3LevelsSameCategory123
297:     RCodeLeveler::setLevel(8,'MyCat')
298:     requireFile('Embedded3LevelsSameCategory')
299:     assert_equal(1,$Var1)
300:     assert_equal(1,$Var2)
301:     assert_equal(1,$Var3)
302:   end
testEmbedded3LevelsUselessBetween0() click to toggle source

Test useless intermediate level in a 3 levels embedding

     # File test/EmbeddedSections/EmbeddedSections.rb, line 645
645:   def testEmbedded3LevelsUselessBetween0
646:     RCodeLeveler.setWarningSeverity(0)
647:     RCodeLeveler.setLevel(2,'Cat1')
648:     RCodeLeveler.setLevel(6,'Cat2')
649:     requireFile('Embedded3LevelsUselessBetween')
650:     assert_equal(nil,$Var1)
651:     assert_equal(nil,$Var2)
652:     assert_equal(nil,$Var3)
653:   end
testEmbedded3LevelsUselessBetween12() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 672
672:   def testEmbedded3LevelsUselessBetween12
673:     RCodeLeveler.setWarningSeverity(0)
674:     RCodeLeveler.setLevel(6,'Cat1')
675:     RCodeLeveler.setLevel(6,'Cat2')
676:     requireFile('Embedded3LevelsUselessBetween')
677:     assert_equal(1,$Var1)
678:     assert_equal(1,$Var2)
679:     assert_equal(nil,$Var3)
680:   end
testEmbedded3LevelsUselessBetween123() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 690
690:   def testEmbedded3LevelsUselessBetween123
691:     RCodeLeveler.setWarningSeverity(0)
692:     RCodeLeveler.setLevel(6,'Cat1')
693:     RCodeLeveler.setLevel(8,'Cat2')
694:     requireFile('Embedded3LevelsUselessBetween')
695:     assert_equal(1,$Var1)
696:     assert_equal(1,$Var2)
697:     assert_equal(1,$Var3)
698:   end
testEmbedded3LevelsUselessBetween2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 654
654:   def testEmbedded3LevelsUselessBetween2
655:     RCodeLeveler.setWarningSeverity(0)
656:     RCodeLeveler.setLevel(4,'Cat1')
657:     RCodeLeveler.setLevel(6,'Cat2')
658:     requireFile('Embedded3LevelsUselessBetween')
659:     assert_equal(nil,$Var1)
660:     assert_equal(nil,$Var2)
661:     assert_equal(nil,$Var3)
662:   end
testEmbedded3LevelsUselessBetween23() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 681
681:   def testEmbedded3LevelsUselessBetween23
682:     RCodeLeveler.setWarningSeverity(0)
683:     RCodeLeveler.setLevel(4,'Cat1')
684:     RCodeLeveler.setLevel(8,'Cat2')
685:     requireFile('Embedded3LevelsUselessBetween')
686:     assert_equal(nil,$Var1)
687:     assert_equal(nil,$Var2)
688:     assert_equal(nil,$Var3)
689:   end
testEmbedded3LevelsUselessBetween3() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 663
663:   def testEmbedded3LevelsUselessBetween3
664:     RCodeLeveler.setWarningSeverity(0)
665:     RCodeLeveler.setLevel(2,'Cat1')
666:     RCodeLeveler.setLevel(8,'Cat2')
667:     requireFile('Embedded3LevelsUselessBetween')
668:     assert_equal(nil,$Var1)
669:     assert_equal(nil,$Var2)
670:     assert_equal(nil,$Var3)
671:   end
testEmbeddedCategoryInDefault0() click to toggle source

Test embedding a category in the default category

     # File test/EmbeddedSections/EmbeddedSections.rb, line 305
305:   def testEmbeddedCategoryInDefault0
306:     RCodeLeveler::setLevel(2)
307:     RCodeLeveler::setLevel(4,'MyCat')
308:     requireFile('EmbeddedCategoryInDefault')
309:     assert_equal(nil,$Var1)
310:     assert_equal(nil,$Var2)
311:   end
testEmbeddedCategoryInDefault1() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 312
312:   def testEmbeddedCategoryInDefault1
313:     RCodeLeveler::setLevel(4)
314:     RCodeLeveler::setLevel(4,'MyCat')
315:     requireFile('EmbeddedCategoryInDefault')
316:     assert_equal(1,$Var1)
317:     assert_equal(nil,$Var2)
318:   end
testEmbeddedCategoryInDefault12() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 326
326:   def testEmbeddedCategoryInDefault12
327:     RCodeLeveler::setLevel(4)
328:     RCodeLeveler::setLevel(6,'MyCat')
329:     requireFile('EmbeddedCategoryInDefault')
330:     assert_equal(1,$Var1)
331:     assert_equal(1,$Var2)
332:   end
testEmbeddedCategoryInDefault2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 319
319:   def testEmbeddedCategoryInDefault2
320:     RCodeLeveler::setLevel(2)
321:     RCodeLeveler::setLevel(6,'MyCat')
322:     requireFile('EmbeddedCategoryInDefault')
323:     assert_equal(nil,$Var1)
324:     assert_equal(nil,$Var2)
325:   end
testEmbeddedDefaultInCategory0() click to toggle source

Test embedding the default category in a category

     # File test/EmbeddedSections/EmbeddedSections.rb, line 335
335:   def testEmbeddedDefaultInCategory0
336:     RCodeLeveler::setLevel(2,'MyCat')
337:     RCodeLeveler::setLevel(4)
338:     requireFile('EmbeddedDefaultInCategory')
339:     assert_equal(nil,$Var1)
340:     assert_equal(nil,$Var2)
341:   end
testEmbeddedDefaultInCategory1() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 342
342:   def testEmbeddedDefaultInCategory1
343:     RCodeLeveler::setLevel(4,'MyCat')
344:     RCodeLeveler::setLevel(4)
345:     requireFile('EmbeddedDefaultInCategory')
346:     assert_equal(1,$Var1)
347:     assert_equal(nil,$Var2)
348:   end
testEmbeddedDefaultInCategory12() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 356
356:   def testEmbeddedDefaultInCategory12
357:     RCodeLeveler::setLevel(4,'MyCat')
358:     RCodeLeveler::setLevel(6)
359:     requireFile('EmbeddedDefaultInCategory')
360:     assert_equal(1,$Var1)
361:     assert_equal(1,$Var2)
362:   end
testEmbeddedDefaultInCategory2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 349
349:   def testEmbeddedDefaultInCategory2
350:     RCodeLeveler::setLevel(2,'MyCat')
351:     RCodeLeveler::setLevel(6)
352:     requireFile('EmbeddedDefaultInCategory')
353:     assert_equal(nil,$Var1)
354:     assert_equal(nil,$Var2)
355:   end
testEmbeddedDifferentCategories0() click to toggle source

Test embedding 2 different categories

     # File test/EmbeddedSections/EmbeddedSections.rb, line 365
365:   def testEmbeddedDifferentCategories0
366:     RCodeLeveler::setLevel(2,'Cat1')
367:     RCodeLeveler::setLevel(4,'Cat2')
368:     requireFile('EmbeddedDifferentCategories')
369:     assert_equal(nil,$Var1)
370:     assert_equal(nil,$Var2)
371:   end
testEmbeddedDifferentCategories1() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 372
372:   def testEmbeddedDifferentCategories1
373:     RCodeLeveler::setLevel(4,'Cat1')
374:     RCodeLeveler::setLevel(4,'Cat2')
375:     requireFile('EmbeddedDifferentCategories')
376:     assert_equal(1,$Var1)
377:     assert_equal(nil,$Var2)
378:   end
testEmbeddedDifferentCategories12() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 386
386:   def testEmbeddedDifferentCategories12
387:     RCodeLeveler::setLevel(4,'Cat1')
388:     RCodeLeveler::setLevel(6,'Cat2')
389:     requireFile('EmbeddedDifferentCategories')
390:     assert_equal(1,$Var1)
391:     assert_equal(1,$Var2)
392:   end
testEmbeddedDifferentCategories2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 379
379:   def testEmbeddedDifferentCategories2
380:     RCodeLeveler::setLevel(2,'Cat1')
381:     RCodeLeveler::setLevel(6,'Cat2')
382:     requireFile('EmbeddedDifferentCategories')
383:     assert_equal(nil,$Var1)
384:     assert_equal(nil,$Var2)
385:   end
testEmbeddedSeveral3Levels0() click to toggle source

Test embedding 4 sections in 3 levels: 1 +- 2 +- 3

   +- 4
     # File test/EmbeddedSections/EmbeddedSections.rb, line 399
399:   def testEmbeddedSeveral3Levels0
400:     RCodeLeveler::setLevel(2,'Cat1')
401:     RCodeLeveler::setLevel(4,'Cat2')
402:     RCodeLeveler::setLevel(6,'Cat3')
403:     RCodeLeveler::setLevel(8,'Cat4')
404:     requireFile('EmbeddedSeveral3Levels')
405:     assert_equal(nil,$Var1)
406:     assert_equal(nil,$Var2)
407:     assert_equal(nil,$Var3)
408:     assert_equal(nil,$Var4)
409:   end
testEmbeddedSeveral3Levels1() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 410
410:   def testEmbeddedSeveral3Levels1
411:     RCodeLeveler::setLevel(4,'Cat1')
412:     RCodeLeveler::setLevel(4,'Cat2')
413:     RCodeLeveler::setLevel(6,'Cat3')
414:     RCodeLeveler::setLevel(8,'Cat4')
415:     requireFile('EmbeddedSeveral3Levels')
416:     assert_equal(1,$Var1)
417:     assert_equal(nil,$Var2)
418:     assert_equal(nil,$Var3)
419:     assert_equal(nil,$Var4)
420:   end
testEmbeddedSeveral3Levels12() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 454
454:   def testEmbeddedSeveral3Levels12
455:     RCodeLeveler::setLevel(4,'Cat1')
456:     RCodeLeveler::setLevel(6,'Cat2')
457:     RCodeLeveler::setLevel(6,'Cat3')
458:     RCodeLeveler::setLevel(8,'Cat4')
459:     requireFile('EmbeddedSeveral3Levels')
460:     assert_equal(1,$Var1)
461:     assert_equal(1,$Var2)
462:     assert_equal(nil,$Var3)
463:     assert_equal(nil,$Var4)
464:   end
testEmbeddedSeveral3Levels123() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 520
520:   def testEmbeddedSeveral3Levels123
521:     RCodeLeveler::setLevel(4,'Cat1')
522:     RCodeLeveler::setLevel(6,'Cat2')
523:     RCodeLeveler::setLevel(8,'Cat3')
524:     RCodeLeveler::setLevel(8,'Cat4')
525:     requireFile('EmbeddedSeveral3Levels')
526:     assert_equal(1,$Var1)
527:     assert_equal(1,$Var2)
528:     assert_equal(1,$Var3)
529:     assert_equal(nil,$Var4)
530:   end
testEmbeddedSeveral3Levels1234() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 542
542:   def testEmbeddedSeveral3Levels1234
543:     RCodeLeveler::setLevel(4,'Cat1')
544:     RCodeLeveler::setLevel(6,'Cat2')
545:     RCodeLeveler::setLevel(8,'Cat3')
546:     RCodeLeveler::setLevel(10,'Cat4')
547:     requireFile('EmbeddedSeveral3Levels')
548:     assert_equal(1,$Var1)
549:     assert_equal(1,$Var2)
550:     assert_equal(1,$Var3)
551:     assert_equal(1,$Var4)
552:   end
testEmbeddedSeveral3Levels124() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 531
531:   def testEmbeddedSeveral3Levels124
532:     RCodeLeveler::setLevel(4,'Cat1')
533:     RCodeLeveler::setLevel(6,'Cat2')
534:     RCodeLeveler::setLevel(6,'Cat3')
535:     RCodeLeveler::setLevel(10,'Cat4')
536:     requireFile('EmbeddedSeveral3Levels')
537:     assert_equal(1,$Var1)
538:     assert_equal(1,$Var2)
539:     assert_equal(nil,$Var3)
540:     assert_equal(nil,$Var4)
541:   end
testEmbeddedSeveral3Levels13() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 465
465:   def testEmbeddedSeveral3Levels13
466:     RCodeLeveler::setLevel(4,'Cat1')
467:     RCodeLeveler::setLevel(4,'Cat2')
468:     RCodeLeveler::setLevel(8,'Cat3')
469:     RCodeLeveler::setLevel(8,'Cat4')
470:     requireFile('EmbeddedSeveral3Levels')
471:     assert_equal(1,$Var1)
472:     assert_equal(nil,$Var2)
473:     assert_equal(1,$Var3)
474:     assert_equal(nil,$Var4)
475:   end
testEmbeddedSeveral3Levels14() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 476
476:   def testEmbeddedSeveral3Levels14
477:     RCodeLeveler::setLevel(4,'Cat1')
478:     RCodeLeveler::setLevel(4,'Cat2')
479:     RCodeLeveler::setLevel(6,'Cat3')
480:     RCodeLeveler::setLevel(10,'Cat4')
481:     requireFile('EmbeddedSeveral3Levels')
482:     assert_equal(1,$Var1)
483:     assert_equal(nil,$Var2)
484:     assert_equal(nil,$Var3)
485:     assert_equal(nil,$Var4)
486:   end
testEmbeddedSeveral3Levels2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 421
421:   def testEmbeddedSeveral3Levels2
422:     RCodeLeveler::setLevel(2,'Cat1')
423:     RCodeLeveler::setLevel(6,'Cat2')
424:     RCodeLeveler::setLevel(6,'Cat3')
425:     RCodeLeveler::setLevel(8,'Cat4')
426:     requireFile('EmbeddedSeveral3Levels')
427:     assert_equal(nil,$Var1)
428:     assert_equal(nil,$Var2)
429:     assert_equal(nil,$Var3)
430:     assert_equal(nil,$Var4)
431:   end
testEmbeddedSeveral3Levels23() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 487
487:   def testEmbeddedSeveral3Levels23
488:     RCodeLeveler::setLevel(2,'Cat1')
489:     RCodeLeveler::setLevel(6,'Cat2')
490:     RCodeLeveler::setLevel(8,'Cat3')
491:     RCodeLeveler::setLevel(8,'Cat4')
492:     requireFile('EmbeddedSeveral3Levels')
493:     assert_equal(nil,$Var1)
494:     assert_equal(nil,$Var2)
495:     assert_equal(nil,$Var3)
496:     assert_equal(nil,$Var4)
497:   end
testEmbeddedSeveral3Levels24() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 498
498:   def testEmbeddedSeveral3Levels24
499:     RCodeLeveler::setLevel(2,'Cat1')
500:     RCodeLeveler::setLevel(6,'Cat2')
501:     RCodeLeveler::setLevel(6,'Cat3')
502:     RCodeLeveler::setLevel(10,'Cat4')
503:     requireFile('EmbeddedSeveral3Levels')
504:     assert_equal(nil,$Var1)
505:     assert_equal(nil,$Var2)
506:     assert_equal(nil,$Var3)
507:     assert_equal(nil,$Var4)
508:   end
testEmbeddedSeveral3Levels3() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 432
432:   def testEmbeddedSeveral3Levels3
433:     RCodeLeveler::setLevel(2,'Cat1')
434:     RCodeLeveler::setLevel(4,'Cat2')
435:     RCodeLeveler::setLevel(8,'Cat3')
436:     RCodeLeveler::setLevel(8,'Cat4')
437:     requireFile('EmbeddedSeveral3Levels')
438:     assert_equal(nil,$Var1)
439:     assert_equal(nil,$Var2)
440:     assert_equal(nil,$Var3)
441:     assert_equal(nil,$Var4)
442:   end
testEmbeddedSeveral3Levels34() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 509
509:   def testEmbeddedSeveral3Levels34
510:     RCodeLeveler::setLevel(2,'Cat1')
511:     RCodeLeveler::setLevel(4,'Cat2')
512:     RCodeLeveler::setLevel(8,'Cat3')
513:     RCodeLeveler::setLevel(10,'Cat4')
514:     requireFile('EmbeddedSeveral3Levels')
515:     assert_equal(nil,$Var1)
516:     assert_equal(nil,$Var2)
517:     assert_equal(nil,$Var3)
518:     assert_equal(nil,$Var4)
519:   end
testEmbeddedSeveral3Levels4() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 443
443:   def testEmbeddedSeveral3Levels4
444:     RCodeLeveler::setLevel(2,'Cat1')
445:     RCodeLeveler::setLevel(4,'Cat2')
446:     RCodeLeveler::setLevel(6,'Cat3')
447:     RCodeLeveler::setLevel(10,'Cat4')
448:     requireFile('EmbeddedSeveral3Levels')
449:     assert_equal(nil,$Var1)
450:     assert_equal(nil,$Var2)
451:     assert_equal(nil,$Var3)
452:     assert_equal(nil,$Var4)
453:   end
testRubyEmbeddingDefaultUncommentF2() click to toggle source

Test ruby level embedding a default uncomment

    # File test/EmbeddedSections/EmbeddedSections.rb, line 91
91:   def testRubyEmbeddingDefaultUncommentF2
92:     $CondVar = false
93:     RCodeLeveler::setLevel(2)
94:     requireFile('RubyEmbeddingDefault')
95:     assert_equal(nil,$Var1)
96:     assert_equal(nil,$Var2)
97:   end
testRubyEmbeddingDefaultUncommentF4() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 105
105:   def testRubyEmbeddingDefaultUncommentF4
106:     $CondVar = false
107:     RCodeLeveler::setLevel(4)
108:     requireFile('RubyEmbeddingDefault')
109:     assert_equal(nil,$Var1)
110:     assert_equal(nil,$Var2)
111:   end
testRubyEmbeddingDefaultUncommentT2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 98
 98:   def testRubyEmbeddingDefaultUncommentT2
 99:     $CondVar = true
100:     RCodeLeveler::setLevel(2)
101:     requireFile('RubyEmbeddingDefault')
102:     assert_equal(1,$Var1)
103:     assert_equal(nil,$Var2)
104:   end
testRubyEmbeddingDefaultUncommentT4() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 112
112:   def testRubyEmbeddingDefaultUncommentT4
113:     $CondVar = true
114:     RCodeLeveler::setLevel(4)
115:     requireFile('RubyEmbeddingDefault')
116:     assert_equal(1,$Var1)
117:     assert_equal(1,$Var2)
118:   end
testRubyEmbeddingRubyCommentFF() click to toggle source

Test ruby level embedding a Ruby comment

    # File test/EmbeddedSections/EmbeddedSections.rb, line 61
61:   def testRubyEmbeddingRubyCommentFF
62:     $CondVar1 = false
63:     $CondVar2 = false
64:     requireFile('RubyEmbeddingRubyComment')
65:     assert_equal(nil,$Var1)
66:     assert_equal(nil,$Var2)
67:   end
testRubyEmbeddingRubyCommentFT() click to toggle source
    # File test/EmbeddedSections/EmbeddedSections.rb, line 75
75:   def testRubyEmbeddingRubyCommentFT
76:     $CondVar1 = false
77:     $CondVar2 = true
78:     requireFile('RubyEmbeddingRubyComment')
79:     assert_equal(nil,$Var1)
80:     assert_equal(nil,$Var2)
81:   end
testRubyEmbeddingRubyCommentTF() click to toggle source
    # File test/EmbeddedSections/EmbeddedSections.rb, line 68
68:   def testRubyEmbeddingRubyCommentTF
69:     $CondVar1 = true
70:     $CondVar2 = false
71:     requireFile('RubyEmbeddingRubyComment')
72:     assert_equal(1,$Var1)
73:     assert_equal(nil,$Var2)
74:   end
testRubyEmbeddingRubyCommentTT() click to toggle source
    # File test/EmbeddedSections/EmbeddedSections.rb, line 82
82:   def testRubyEmbeddingRubyCommentTT
83:     $CondVar1 = true
84:     $CondVar2 = true
85:     requireFile('RubyEmbeddingRubyComment')
86:     assert_equal(1,$Var1)
87:     assert_equal(1,$Var2)
88:   end
testUncommentInEmbedded2() click to toggle source

Test basic embedding an uncomment

    # File test/EmbeddedSections/EmbeddedSections.rb, line 41
41:   def testUncommentInEmbedded2
42:     RCodeLeveler::setLevel(2)
43:     requireFile('UncommentInEmbedded')
44:     assert_equal(nil,$Var1)
45:     assert_equal(nil,$Var2)
46:   end
testUncommentInEmbedded4() click to toggle source
    # File test/EmbeddedSections/EmbeddedSections.rb, line 47
47:   def testUncommentInEmbedded4
48:     RCodeLeveler::setLevel(4)
49:     requireFile('UncommentInEmbedded')
50:     assert_equal(1,$Var1)
51:     assert_equal(nil,$Var2)
52:   end
testUncommentInEmbedded6() click to toggle source
    # File test/EmbeddedSections/EmbeddedSections.rb, line 53
53:   def testUncommentInEmbedded6
54:     RCodeLeveler::setLevel(6)
55:     requireFile('UncommentInEmbedded')
56:     assert_equal(1,$Var1)
57:     assert_equal(1,$Var2)
58:   end
testUselessEmbeddedCommentException() click to toggle source

Test useless embedding for comment

     # File test/EmbeddedSections/EmbeddedSections.rb, line 585
585:   def testUselessEmbeddedCommentException
586:     assert_raise(RCodeLeveler::ParseError) do
587:       requireFile('UselessEmbeddedComment')
588:     end
589:     assert_equal(nil,$Var1)
590:     assert_equal(nil,$Var2)
591:   end
testUselessEmbeddedCommentNoWarning2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 592
592:   def testUselessEmbeddedCommentNoWarning2
593:     RCodeLeveler.setWarningSeverity(0)
594:     RCodeLeveler.setLevel(2)
595:     requireFile('UselessEmbeddedComment')
596:     assert_equal(nil,$Var1)
597:     assert_equal(nil,$Var2)
598:   end
testUselessEmbeddedCommentNoWarning4() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 599
599:   def testUselessEmbeddedCommentNoWarning4
600:     RCodeLeveler.setWarningSeverity(0)
601:     RCodeLeveler.setLevel(4)
602:     requireFile('UselessEmbeddedComment')
603:     assert_equal(nil,$Var1)
604:     assert_equal(nil,$Var2)
605:   end
testUselessEmbeddedCommentNoWarning6() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 606
606:   def testUselessEmbeddedCommentNoWarning6
607:     RCodeLeveler.setWarningSeverity(0)
608:     RCodeLeveler.setLevel(6)
609:     requireFile('UselessEmbeddedComment')
610:     assert_equal(1,$Var1)
611:     assert_equal(1,$Var2)
612:   end
testUselessEmbeddedCommentSameLevelException() click to toggle source

Test useless embedding for comment of the same level

     # File test/EmbeddedSections/EmbeddedSections.rb, line 701
701:   def testUselessEmbeddedCommentSameLevelException
702:     assert_raise(RCodeLeveler::ParseError) do
703:       requireFile('UselessEmbeddedCommentSameLevel')
704:     end
705:     assert_equal(nil,$Var1)
706:     assert_equal(nil,$Var2)
707:   end
testUselessEmbeddedCommentSameLevelNoWarning2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 708
708:   def testUselessEmbeddedCommentSameLevelNoWarning2
709:     RCodeLeveler.setWarningSeverity(0)
710:     RCodeLeveler.setLevel(2)
711:     requireFile('UselessEmbeddedCommentSameLevel')
712:     assert_equal(nil,$Var1)
713:     assert_equal(nil,$Var2)
714:   end
testUselessEmbeddedCommentSameLevelNoWarning4() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 715
715:   def testUselessEmbeddedCommentSameLevelNoWarning4
716:     RCodeLeveler.setWarningSeverity(0)
717:     RCodeLeveler.setLevel(4)
718:     requireFile('UselessEmbeddedCommentSameLevel')
719:     assert_equal(1,$Var1)
720:     assert_equal(1,$Var2)
721:   end
testUselessEmbeddedUncommentException() click to toggle source

Test useless embedding for uncomment

     # File test/EmbeddedSections/EmbeddedSections.rb, line 615
615:   def testUselessEmbeddedUncommentException
616:     assert_raise(RCodeLeveler::ParseError) do
617:       requireFile('UselessEmbeddedUncomment')
618:     end
619:     assert_equal(nil,$Var1)
620:     assert_equal(nil,$Var2)
621:   end
testUselessEmbeddedUncommentNoWarning2() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 622
622:   def testUselessEmbeddedUncommentNoWarning2
623:     RCodeLeveler.setWarningSeverity(0)
624:     RCodeLeveler.setLevel(2)
625:     requireFile('UselessEmbeddedUncomment')
626:     assert_equal(nil,$Var1)
627:     assert_equal(nil,$Var2)
628:   end
testUselessEmbeddedUncommentNoWarning4() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 629
629:   def testUselessEmbeddedUncommentNoWarning4
630:     RCodeLeveler.setWarningSeverity(0)
631:     RCodeLeveler.setLevel(4)
632:     requireFile('UselessEmbeddedUncomment')
633:     assert_equal(nil,$Var1)
634:     assert_equal(nil,$Var2)
635:   end
testUselessEmbeddedUncommentNoWarning6() click to toggle source
     # File test/EmbeddedSections/EmbeddedSections.rb, line 636
636:   def testUselessEmbeddedUncommentNoWarning6
637:     RCodeLeveler.setWarningSeverity(0)
638:     RCodeLeveler.setLevel(6)
639:     requireFile('UselessEmbeddedUncomment')
640:     assert_equal(1,$Var1)
641:     assert_equal(1,$Var2)
642:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.