Skip to content

Commit 5ba5d5b

Browse files
committed
Added testing of LOCK_VERSION=3.
1 parent 0d50ea4 commit 5ba5d5b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/run-tests.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ int main() {
2626

2727
int total = 0, passed = 0;
2828
for (char version = 1; version <= 40; version++) {
29+
if (LOCK_VERSION != 0 && LOCK_VERSION != version) { continue; }
30+
2931
for (char ecc = 0; ecc < 4; ecc++) {
3032
const qrcodegen::QrCode::Ecc *errCorLvl;
3133
switch (ecc) {

tests/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
22

33
clang++ run-tests.cpp QrCode.cpp QrSegment.cpp BitBuffer.cpp ../src/qrcode.c -o test && ./test
4+
clang++ run-tests.cpp QrCode.cpp QrSegment.cpp BitBuffer.cpp ../src/qrcode.c -o test -D LOCK_VERSION=3 && ./test
45

0 commit comments

Comments
 (0)