ion-tests icon indicating copy to clipboard operation
ion-tests copied to clipboard

Add a good test for integers with overpadded zero values.

Open tgregg opened this issue 5 years ago • 0 comments

See:

  • https://github.com/amzn/ion-docs/issues/93
  • https://github.com/amzn/ion-docs/issues/96

0x20 is the most common binary form of int 0, and is the only form that standard Ion writers should write. However, overpadded encodings of 0 with the positive int type code 2 are permitted, e.g. 0x21 0x00. Add a test for such overpadded encodings.

tgregg avatar Feb 07 '20 01:02 tgregg