Difference: TestCaseAutoIncludes ( vs. 1)

Revision 12021-01-06 - TWikiGuest

Line: 1 to 1
Added:
>
>
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

<-- expected RECUSS -->
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.
<-- /expected -->

Actual

<-- 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.
<-- /actual -->

File not found

Expected

<-- expected expand FNF -->
Warning: Can't find topic TestCases.FileNotFound
<-- /expected -->

Actual

<-- actual -->
Warning: Can't find topic TestCases.FileNotFound
<-- /actual -->

References to BASETOPIC and INCLUDINGTOPIC

<-- AAA hubba AAA tag string used for testing pattern -->

Expected

<-- expected expand -->

TestCaseAutoIncludes TestCaseAutoIncludes hubba

TestCaseAutoIncludes IncludedTopic

<-- /expected -->

Actual

<-- actual -->

TestCaseAutoIncludes TestCaseAutoIncludes hubba

TestCaseAutoIncludes IncludedTopic

<-- /actual -->

Parameterized includes

Expected

<-- expected PARAM -->
%A% %B% %C% 1 2 3 %A% %B% %C%
<-- /expected -->

Actual

<-- actual -->
%A% %B% %C% 1 2 3 %A% %B% %C%
<-- /actual -->

Include nothing

Expected

<-- expected NOWT -->
Warning: Can't find topic "".""
<-- /expected -->

Actual

<-- actual -->
Warning: Can't find topic "".""
<-- /actual -->

Include nothing with warning

Expected

<-- expected NOBBUTWARN -->
<-- /expected -->

Actual

<-- actual -->
<-- /actual -->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback