Skip to content

Commit

Permalink
Added testing of LOCK_VERSION=3.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 9, 2017
1 parent 0d50ea4 commit 5ba5d5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/run-tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ int main() {

int total = 0, passed = 0;
for (char version = 1; version <= 40; version++) {
if (LOCK_VERSION != 0 && LOCK_VERSION != version) { continue; }

for (char ecc = 0; ecc < 4; ecc++) {
const qrcodegen::QrCode::Ecc *errCorLvl;
switch (ecc) {
Expand Down
1 change: 1 addition & 0 deletions tests/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

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

0 comments on commit 5ba5d5b

Please sign in to comment.