Description: Check for the correct detection and handling of recursive and repeated includes

run this test

Designed by: Crawford Currie

Recursion detection and avoidance

Expected

There was an old Man of the coast There was an old Man of the coast

Warning
Can't INCLUDE TestCases.RecursiveInclude repeatedly, topic is already included.
Who placidly sat on a post; But when it was cold He relinquished his hold And called for some hot buttered toast. Who placidly sat on a post; But when it was cold He relinquished his hold And called for some hot buttered toast.

Actual

There was an old Man of the coast There was an old Man of the coast
Warning
Can't INCLUDE TestCases.RecursiveInclude repeatedly, topic is already included.
Who placidly sat on a post; But when it was cold He relinquished his hold And called for some hot buttered toast. Who placidly sat on a post; But when it was cold He relinquished his hold And called for some hot buttered toast.

File not found

Expected

Warning: Can't find topic TestCases.FileNotFound

Actual

Warning: Can't find topic TestCases.FileNotFound

References to BASETOPIC and INCLUDINGTOPIC

Expected

TestCaseAutoIncludes TestCaseAutoIncludes hubba

TestCaseAutoIncludes IncludedTopic

Actual

TestCaseAutoIncludes TestCaseAutoIncludes hubba

TestCaseAutoIncludes IncludedTopic

Parameterized includes

Expected

%A% %B% %C% 1 2 3 %A% %B% %C%

Actual

%A% %B% %C% 1 2 3 %A% %B% %C%

Include nothing

Expected

Warning
Can't INCLUDE '', path is empty or contains illegal characters.

Actual

Warning
Can't INCLUDE '', path is empty or contains illegal characters.

Include nothing with warning

Expected

Actual


This topic: TestCases > TestCaseAutoIncludes
Topic revision: 27 Mar 2005, ProjectContributor
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads