mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION MAILMARK: fuller error messages CODABAR: add option to show check character in HRT zint.h: use 0xNNNN for OR-able defines GUI: add guard descent height reset button, add Zint version to window title, static get_zint_version() method, use QStringLiteral (QSL shorthand), use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons, add saveAs shortcut, add main menu, context menus and actions, add help, reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF, lessen triggering of update_preview(), shorten names of getters/setters, simplify/shorten some update_preview() logic in switch, CODEONE disable structapp for Version S qzint.cpp: add on_errored signal, add missing getters, add test
This commit is contained in:
@ -103,10 +103,13 @@ static void test_hrt(int index, int debug) {
|
||||
/* 0*/ { BARCODE_CODABAR, -1, "A1234B", "A1234B" },
|
||||
/* 1*/ { BARCODE_CODABAR, -1, "a1234c", "A1234C" }, // Converts to upper
|
||||
/* 2*/ { BARCODE_CODABAR, 1, "A1234B", "A1234B" }, // Check not included
|
||||
/* 3*/ { BARCODE_PHARMA, -1, "123456", "" }, // None
|
||||
/* 4*/ { BARCODE_PHARMA_TWO, -1, "123456", "" }, // None
|
||||
/* 5*/ { BARCODE_CODE32, -1, "123456", "A001234564" },
|
||||
/* 6*/ { BARCODE_CODE32, -1, "12345678", "A123456788" },
|
||||
/* 3*/ { BARCODE_CODABAR, 2, "A1234B", "A12345B" }, // Check included
|
||||
/* 4*/ { BARCODE_CODABAR, 1, "A123456A", "A123456A" }, // Check not included
|
||||
/* 5*/ { BARCODE_CODABAR, 2, "A123456A", "A123456$A" }, // Check included
|
||||
/* 6*/ { BARCODE_PHARMA, -1, "123456", "" }, // None
|
||||
/* 7*/ { BARCODE_PHARMA_TWO, -1, "123456", "" }, // None
|
||||
/* 8*/ { BARCODE_CODE32, -1, "123456", "A001234564" },
|
||||
/* 9*/ { BARCODE_CODE32, -1, "12345678", "A123456788" },
|
||||
};
|
||||
int data_size = ARRAY_SIZE(data);
|
||||
int i, length, ret;
|
||||
|
Reference in New Issue
Block a user