This was done as part of the original design, where the last block doesn't need to be padded as a the End Of File record would be place immediately after.
In the current configuration the Universal Hex first "section" last block is not padded.
|
// TODO: This test fails because the last block for a section is not padded |
|
// expect(universalHexBlocks).toEqual(hexCombinedBlocks); |
As the default implementation now uses only "sections" without the 512-byte blocks this issue is only present for uses actively using the block format.
This was done as part of the original design, where the last block doesn't need to be padded as a the End Of File record would be place immediately after.
In the current configuration the Universal Hex first "section" last block is not padded.
microbit-universal-hex/src/__tests__/universal-hex.spec.ts
Lines 1294 to 1295 in 4147e22
As the default implementation now uses only "sections" without the 512-byte blocks this issue is only present for uses actively using the block format.