Summary: Functions related to unit testing, and displaying example code.

Function Summary
testCode Test the provided(-as-a-string) code, and give a descriptive error message when things don't go the way you planned. Sometimes, things just don't go the way we planned.
getPadded Add some spaces to the right side of the provided string. For the purpose of displaying a series of strings uniformly.
getInitCap Get the provided string with its first character capitalized.


test_and_xmpl.js: Overview

Functions related to unit testing, and displaying example code.







TOP     test_and_xmpl.testCode()

Test the provided(-as-a-string) code, and give a descriptive error message when things don't go the way you planned. Sometimes, things just don't go the way we planned.

This function is useful and flexible, as long as you use utility.crsh() to exit your code, in the case of a fatal error.

PARAMETERS

SIGNATURE

testCode(s_code, s_xpctdCrshCd, v_xpctdRtrnValue, s_testName, i_unitTestID, b_redispCrash)




TOP     test_and_xmpl.getPadded()

Add some spaces to the right side of the provided string. For the purpose of displaying a series of strings uniformly.

PARAMETERS

RETURNS

SIGNATURE

getPadded(s_tring, i_padLength)




TOP     test_and_xmpl.getInitCap()

Get the provided string with its first character capitalized.

PARAMETERS

RETURNS

SIGNATURE

getInitCap(s_tring)




























___RPLC___ vfjs_doc_footer ___RPLCZ___