| kind | test |
|---|---|
| component | QrCode |
| version | 1 |
data: "https://github.com"(output is a multi-line block of █ ▀ ▄ and space characters)
data: "hello"(every character in the output is one of: █ ▀ ▄ or space)
data: "test"(all lines have equal character width)
These verify the cell-rendering logic that maps two vertical QR modules to a single terminal character.
top: true
bottom: true
expect: "█"
top: true
bottom: false
expect: "▀"
top: false
bottom: true
expect: "▄"
top: false
bottom: false
expect: " "
These verify the center placeholder region calculation.
size: 25
margin: 1
expect:
colStart: centered within size
rowStart: centered within size
width: ≤ 10
height: ≤ 8
rowStart_parity: matches margin parity
size: 40
margin: 1
expect:
width: 10
height: 8
size: 6
margin: 1
expect:
width: 6
height: 6
size: 25
margin: 1
expect:
rowStart_parity: odd
size: 25
margin: 2
expect:
rowStart_parity: even
data: "test"(first row and first column of each line contain quiet zone spacing)
data: "https://github.com"(QR is generated with error correction level H, tolerating ~30% obscured modules)