UNPKG

@haystacks/async

Version:

A framework to build any number or any kind of native application or automation solution.

280 lines (224 loc) 9.87 kB
Description: Test plan for stack.js -------------------------------------------------------------------------------- testName: initStack_validData input stackNameSpace: string (The namespace the Stack array should be created under) output: void testName: initStack_inValidStackNameSpaceString input stackNameSpace: string (dfxg24346dfg) output: ? testName: initStack_inValidStackNameSpaceInteger input stackNameSpace: integer (123) output: ? testName: initStack_inValidStackNameSpaceBoolean input stackNameSpace: boolean (false) output: ? testName: initStack_inValidStackNameSpaceUndefined input stackNameSpace: undefined output: ? testName: initStack_inValidStackNameSpaceNaN input stackNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: clearStack_validData input stackNameSpace: string (The namespace for the stack that should be cleared) output: void testName: clearStack_inValidStackNameSpaceString input stackNameSpace: string (dfxg24346dfg) output: ? testName: clearStack_inValidStackNameSpaceInteger input stackNameSpace: integer (123) output: ? testName: clearStack_inValidStackNameSpaceBoolean input stackNameSpace: boolean (false) output: ? testName: clearStack_inValidStackNameSpaceUndefined input stackNameSpace: undefined output: ? testName: clearStack_inValidStackNameSpaceNaN input stackNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: push_validData input stackNameSpace: string (The namespace of the stack that should be used to push the data onto) input value: string|integer|boolean|object|array (The data that should be pushed on the stack) output: void testName: push_inValidStackNameSpaceString input stackNameSpace: string (dfxg24346dfg) input value: string|integer|boolean|object|array (The data that should be pushed on the stack) output: ? testName: push_inValidValueString input stackNameSpace: string (The namespace of the stack that should be used to push the data onto) input value: string (dfxg24346dfg) output: ? testName: push_inValidStackNameSpaceInteger input stackNameSpace: integer (123) input value: string|integer|boolean|object|array (The data that should be pushed on the stack) output: ? testName: push_inValidStackNameSpaceBoolean input stackNameSpace: boolean (false) input value: string|integer|boolean|object|array (The data that should be pushed on the stack) output: ? testName: push_inValidValueInteger input stackNameSpace: string (The namespace of the stack that should be used to push the data onto) input value: integer (123) output: ? testName: push_inValidValueBoolean input stackNameSpace: string (The namespace of the stack that should be used to push the data onto) input value: boolean (false) output: ? testName: push_inValidStackNameSpaceUndefined input stackNameSpace: undefined input value: string|integer|boolean|object|array (The data that should be pushed on the stack) output: ? testName: push_inValidStackNameSpaceNaN input stackNameSpace: NaN input value: string|integer|boolean|object|array (The data that should be pushed on the stack) output: ? testName: push_inValidValueUndefined input stackNameSpace: string (The namespace of the stack that should be used to push the data onto) input value: undefined output: ? testName: push_inValidValueNaN input stackNameSpace: string (The namespace of the stack that should be used to push the data onto) input value: NaN output: ? -------------------------------------------------------------------------------- testName: pop_validData input stackNameSpace: string (The namespace of the stack that should be used to pop the data and return it) output: string|integer|boolean|object|array (Whatever data was stored at the top of the stack) testName: pop_inValidStackNameSpaceString input stackNameSpace: string (dfxg24346dfg) output: ? testName: pop_inValidStackNameSpaceInteger input stackNameSpace: integer (123) output: ? testName: pop_inValidStackNameSpaceBoolean input stackNameSpace: boolean (false) output: ? testName: pop_inValidStackNameSpaceUndefined input stackNameSpace: undefined output: ? testName: pop_inValidStackNameSpaceNaN input stackNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: isEmpty_validData input stackNameSpace: string (The namespace of the stack that should be checked if it is empty or not empty) output: boolean (True or False to indicate if the specified stack is empty or not empty) testName: isEmpty_inValidStackNameSpaceString input stackNameSpace: string (dfxg24346dfg) output: ? testName: isEmpty_inValidStackNameSpaceInteger input stackNameSpace: integer (123) output: ? testName: isEmpty_inValidStackNameSpaceBoolean input stackNameSpace: boolean (false) output: ? testName: isEmpty_inValidStackNameSpaceUndefined input stackNameSpace: undefined output: ? testName: isEmpty_inValidStackNameSpaceNaN input stackNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: length_validData input stackNameSpace: string (The namespace of the stack that should return a length property) output: integer (A value that represents a count of the number of entities on the specified stack) testName: length_inValidStackNameSpaceString input stackNameSpace: string (dfxg24346dfg) output: ? testName: length_inValidStackNameSpaceInteger input stackNameSpace: integer (123) output: ? testName: length_inValidStackNameSpaceBoolean input stackNameSpace: boolean (false) output: ? testName: length_inValidStackNameSpaceUndefined input stackNameSpace: undefined output: ? testName: length_inValidStackNameSpaceNaN input stackNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: contains_validData input stackNameSpace: string (The namespace of the stack that should be searched for the specified value) input value: string|integer|boolean|object|array (The value/object that should be searched to see if it exists on the specified stack or does not exist) output: boolean (True or False to indicate if the value/object exists or does not exist) testName: contains_inValidStackNameSpaceString input stackNameSpace: string (dfxg24346dfg) string|integer|boolean|object|array (The value/object that should be searched to see if it exists on the specified stack or does not exist) output: ? testName: contains_inValidValueString input stackNameSpace: string (The namespace of the stack that should be searched for the specified value) input value: string (dfxg24346dfg) output: ? testName: contains_inValidStackNameSpaceInteger input stackNameSpace: integer (123) string|integer|boolean|object|array (The value/object that should be searched to see if it exists on the specified stack or does not exist) output: ? testName: contains_inValidStackNameSpaceBoolean input stackNameSpace: boolean (false) string|integer|boolean|object|array (The value/object that should be searched to see if it exists on the specified stack or does not exist) output: ? testName: contains_inValidValueInteger input stackNameSpace: string (The namespace of the stack that should be searched for the specified value) input value: integer (123) output: ? testName: contains_inValidValueBoolean input stackNameSpace: string (The namespace of the stack that should be searched for the specified value) input value: boolean (false) output: ? testName: contains_inValidStackNameSpaceUndefined input stackNameSpace: undefined string|integer|boolean|object|array (The value/object that should be searched to see if it exists on the specified stack or does not exist) output: ? testName: contains_inValidStackNameSpaceNaN input stackNameSpace: NaN string|integer|boolean|object|array (The value/object that should be searched to see if it exists on the specified stack or does not exist) output: ? testName: contains_inValidValueUndefined input stackNameSpace: string (The namespace of the stack that should be searched for the specified value) input value: undefined output: ? testName: contains_inValidValueNaN input stackNameSpace: string (The namespace of the stack that should be searched for the specified value) input value: NaN output: ? -------------------------------------------------------------------------------- testName: print_validData input stackNameSpace: string (The namespace that should be used to print out the contents of the stack on the D-data structure) output: void testName: print_inValidStackNameSpaceString input stackNameSpace: string (dfxg24346dfg) output: ? testName: print_inValidStackNameSpaceInteger input stackNameSpace: integer (123) output: ? testName: print_inValidStackNameSpaceBoolean input stackNameSpace: boolean (false) output: ? testName: print_inValidStackNameSpaceUndefined input stackNameSpace: undefined output: ? testName: print_inValidStackNameSpaceNaN input stackNameSpace: NaN output: ? -------------------------------------------------------------------------------- testName: getStackContents_validData input stackNameSpace: string (The namespace that should be used to return the contents of the stack on the D-data structure) output: array<string> (The contents of the stack as specified by the input parameter stack namespace) testName: getStackContents_inValidStackNameSpaceString input stackNameSpace: string (dfxg24346dfg) output: ? testName: getStackContents_inValidStackNameSpaceInteger input stackNameSpace: integer (123) output: ? testName: getStackContents_inValidStackNameSpaceBoolean input stackNameSpace: boolean (false) output: ? testName: getStackContents_inValidStackNameSpaceUndefined input stackNameSpace: undefined output: ? testName: getStackContents_inValidStackNameSpaceNaN input stackNameSpace: NaN output: ?