function assertEqualsSearchGroup(allBlocks, actualGroup, expectedGroup) {
      assert.equal(actualGroup.length, expectedGroup.length);
      for (let block, i = 0; (block = allBlocks[i]); i++) {
        if (expectedGroup.indexOf(block) !== -1) {
          assert.equal(
            actualGroup.indexOf(block) !== -1,
            true,
            'Expected block [' + block.type + '] to be in search results',
          );
          assert.equal(
            isBlockHighlighted(block),
            true,
            'Expected block [' + block.type + '] to be highlighted.',
          );
        } else {
          assert.equal(
            actualGroup.indexOf(block) !== -1,
            false,
            'Unexpected block [' + block.type + '] in search results',
          );
          assert.equal(
            isBlockHighlighted(block),
            false,
            'Unexpected block [' + block.type + '] found highlighted.',
          );
        }
      }
    }
Assert blocks are equal to the search group of blocks.
@param {Array.<Blockly.BlockSvg>} allBlocks All blocks.
@param {Array.<Blockly.BlockSvg>} actualGroup Search blocks group.
@param {*} expectedGroup Expected search block group.