MCPcopy
hub / github.com/zxing-js/library / testStuffBits

Function testStuffBits

src/test/core/aztec/encoder/EncoderTest.spec.ts:764–768  ·  view source on GitHub ↗
(wordSize: number, bits: string, expected: string)

Source from the content-addressed store, hash-verified

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();

Callers 1

Calls 5

assertEqualsFunction · 0.90
toBitArrayFunction · 0.85
stripSpaceFunction · 0.85
stuffBitsMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected