testBadInput() {
    assertThrows(
        'Bad input',
        /** @suppress {checkTypes} array like isn't a supported type */
        () => {
          new Sha256().update({});
        });
    assertThrows('Floating point not allows', () => {
      new Sha256().update([1, 2, 3, 4, 4.5]);
    });
    assertThrows('Negative not allowed', () => {
      new Sha256().update([1, 2, 3, 4, -10]);
    });
    assertThrows('Must be byte array', () => {
      new Sha256().update([1, 2, 3, 4, {}]);
    });
  }
Check that the code checks for bad input