Difference: TestCaseAutoVariableNames ( vs. 1)

Revision 12021-01-06 - TWikiGuest

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

TestCaseAutoVariableNames

Description: Testing the rules for variable names by mixing upper case, lower case, numerical and special characters.

run this test

Designed by: Kenneth Lavrsen

Variable definitions used in the test

  • Set variable = lowercase
  • Set Variable = Titlecase
  • Set VariableName = WikiWord
  • Set VARIABLEVAR = UPPERCASE
  • Set variable2 = lowercase-with-number
  • Set Variable2 = Titlecase-with-number
  • Set VARIABLE2 = UPPERCASE-with-number
  • Set UP2DATE = MIXEDUPPERNUMBER
  • Set All4TWiki = Mix-of-uplownumber
  • Set camelCase = upperINthemiddle
  • Set UPPER_UNDERSCORE = UPPERCASE-with-underscore
  • Set lower_underscore = lowercase-with-underscore
  • Set Mix_4All = Mix of everything
  • Set ILLEGAL-CHARACTER = illegal-dash

Test Cases

CaseExpectedActual
Lowercase
<-- expected -->
lowercase
<-- /expected -->
<-- actual -->
lowercase
<-- /actual -->
Titlecase
<-- expected -->
Titlecase
<-- /expected -->
<-- actual -->
Titlecase
<-- /actual -->
WikiWord
<-- expected -->
WikiWord
<-- /expected -->
<-- actual -->
WikiWord
<-- /actual -->
Upper-case
<-- expected -->
UPPERCASE
<-- /expected -->
<-- actual -->
UPPERCASE
<-- /actual -->
Lower-case with number
<-- expected -->
lowercase-with-number
<-- /expected -->
<-- actual -->
lowercase-with-number
<-- /actual -->
Title-case with number
<-- expected -->
Titlecase-with-number
<-- /expected -->
<-- actual -->
Titlecase-with-number
<-- /actual -->
Upper-case with number
<-- expected -->
UPPERCASE-with-number
<-- /expected -->
<-- actual -->
UPPERCASE-with-number
<-- /actual -->
Mixed upper-case and number
<-- expected -->
MIXEDUPPERNUMBER
<-- /expected -->
<-- actual -->
MIXEDUPPERNUMBER
<-- /actual -->
Mix of upper/lower and number
<-- expected -->
Mix-of-uplownumber
<-- /expected -->
<-- actual -->
Mix-of-uplownumber
<-- /actual -->
Upper case in the middle
<-- expected -->
upperINthemiddle
<-- /expected -->
<-- actual -->
upperINthemiddle
<-- /actual -->
Upper-case with underscore
<-- expected -->
UPPERCASE-with-underscore
<-- /expected -->
<-- actual -->
UPPERCASE-with-underscore
<-- /actual -->
Lower-case with underscore
<-- expected -->
lowercase-with-underscore
<-- /expected -->
<-- actual -->
lowercase-with-underscore
<-- /actual -->
Mix of everything
<-- expected -->
Mix of everything
<-- /expected -->
<-- actual -->
Mix of everything
<-- /actual -->
Illegal character
<-- expected -->
%ILLEGAL-CHARACTER%
<-- /expected -->
<-- actual -->
%ILLEGAL-CHARACTER%
<-- /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