get testDivMod() {
    const /** !Object<string, function()> */ testCases = {};

    /** @return {function()} */
    const createTestDivMod = (/** number */ i, /** number */ count) => {
      return () => {
        const vi = Long.fromBits(TEST_BITS[i + 1], TEST_BITS[i]);
        for (let j = 0; j < TEST_BITS.length; j += 2) {
          const vj = Long.fromBits(TEST_BITS[j + 1], TEST_BITS[j]);
          if (!vj.isZero()) {
            const divResult = vi.div(vj);
            assertEquals(TEST_DIV_BITS[count++], divResult.getHighBits());
            assertEquals(TEST_DIV_BITS[count++], divResult.getLowBits());

            const modResult = vi.modulo(vj);
            const combinedResult = divResult.multiply(vj).add(modResult);
            assertTrue(vi.equals(combinedResult));
          }
        }
      };
    };

    let countPerDivModCall = 0;
    for (let j = 0; j < TEST_BITS.length; j += 2) {
      const vj = Long.fromBits(TEST_BITS[j + 1], TEST_BITS[j]);
      if (!vj.isZero()) {
        countPerDivModCall += 2;
      }
    }

    let countDivMod = 0;
    for (let i = 0; i < TEST_BITS.length; i += 2) {
      testCases[`test${i}`] = createTestDivMod(i, countDivMod);
      countDivMod += countPerDivModCall;
    }

    return testCases;
  }
Nested test suite for division operations.