TestFunctionsForJSON: updated testFIELDFunctionWithInvalidIndexNotation
& testSET_FIELDFunctionWithInvalidIndexNotation, adding tests of very
large array indexes; also, updated testProcWithInvalidJSON to print the
expectedErrorMessage when no error is detected. [I swear I checked this
in before, but it disappeared.]
TestFunctionsForJSON: added tests of the SET_FIELD (JSON) function:
using various data types; adding new fields (as opposed to updating
existing ones); using ad hoc queries (using “@AdHoc”); called with
array[-1] (meaning just beyond the last value), or with an index larger
than its current size (which also adds an additional value on the end,
filling with nulls if needed); using array index notation on a nameless
array.
And tests of the FIELD function: called with array[-1] (meaning the last
value), or with an index larger than its current size (which returns
null); of its case sensitivity; and additional tests of a nameless
array.
Also tweaked the existing invalid query tests; added (private)
debugPrintJsonDoc method, called at various points, which prints the
specified JSON docs, only if DEBUG is true; and improved a few comments.