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


This topic: TestCases > WebHome > TestCaseAutoVariableNames
Topic revision: r0 - 2006-03-19 - TWikiContributor
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback