(wordSize: number, bits: string, expected: string)
| 762 | } |
| 763 | |
| 764 | function testStuffBits(wordSize: number, bits: string, expected: string) { |
| 765 | const inArr = toBitArray(bits); |
| 766 | const stuffed: BitArray = AztecEncoder.stuffBits(inArr, wordSize); |
| 767 | assertEquals(stripSpace(expected), stripSpace(stuffed.toString())); |
| 768 | } |
| 769 | |
| 770 | function toBitArray(bits: string): BitArray { |
| 771 | const inArr = new BitArray(); |
no test coverage detected