function runSetValueTests(validValueTestCases, invalidValueTestCases) {
    const createFieldForTestCase = (testCase) =>
      FieldBitmap.fromJson(`{
        width: ${
          Array.isArray(testCase.value) ? testCase.value.length : DEFAULT_WIDTH
        },
        height:${
          testCase.value && Array.isArray(testCase.value[0])
            ? testCase.value[0].length
            : DEFAULT_HEIGHT
        },
      }`);

    /**
     * Creates test callback for invalid setValue test.
     * @param {!FieldValueTestCase} testCase The test case information.
     * @returns {!Function} The test callback.
     */
    const createInvalidSetValueTestCallback = (testCase) => {
      return function () {
        const field = createFieldForTestCase(testCase);
        field.setValue(testCase.value);
        assertFieldDefault(field);
      };
    };
    /**
     * Creates test callback for valid setValue test.
     * @param {!FieldValueTestCase} testCase The test case information.
     * @returns {!Function} The test callback.
     */
    const createValidSetValueTestCallback = (testCase) => {
      return function () {
        const field = createFieldForTestCase(testCase);
        field.setValue(testCase.value);
        validTestCaseAssertField(field, testCase);
      };
    };

    testHelpers.runTestCases(
      invalidValueTestCases,
      createInvalidSetValueTestCallback,
    );
    testHelpers.runTestCases(
      validValueTestCases,
      createValidSetValueTestCallback,
    );
  }
Reimplementation of the function from TestHelpers that supports array
equality testing.
@param {*} validValueTestCases test cases for valid field values
@param {*} invalidValueTestCases test cases for invalid field values