1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-09 13:05:58 +00:00

CODE128: optimize for extended ASCII as well using techniques from

BWIPP minimal encoding by Bue Jensen (BWIPP PR #278);
  new extra escape `\^@` to turn off manual switching
zint.h: increase `symbol->text` size 200 -> 256 (means that for
  the moment can no longer generate ZINT_WARN_HRT_TRUNCATED)
GS1_128/GS1_128_CC: warn if READER_INIT option used
CODE16K: move `c16k_set_a/b/c()` routines from "code128.c" and
  rename `c16k_` (also `C128_` defines to `C16K_`)
common: make `itoc()` simple macro which adds '0' (>= 10 now ':',
  ';' etc) and adjust `expand()` accordingly for slight speed-up
general: EXTRA_ESCAPE_MODE now implies ESCAPE_MODE
tests: update BWIPP to latest and enable CODE128AB ("suppressc");
  new test args '-n' (exclude func) and '-m' (match func)
This commit is contained in:
gitlost
2024-11-18 05:08:52 +00:00
parent c9909d3d91
commit 86b6a0553b
23 changed files with 1113 additions and 1017 deletions

View File

@@ -1,4 +1,4 @@
% backend/tests/README 2024-01-17
% backend/tests/README 2024-11-18
Zint backend test suite
-----------------------
@@ -67,6 +67,16 @@ To run a single test function within an individual test, use '-f <func-name>':
backend/tests/test_common -f utf8_to_unicode
backend/tests/test_dotcode -f input
To exclude a single test function, use '-n <func-name>':
backend/tests/test_common -n utf8_to_unicode
backend/tests/test_dotcode -n input
To run all test functions that match (i.e. contain) a string, use '-m <string>':
backend/tests/test_common -m not_sane
backend/tests/test_dotcode -m encode
To run a single dataset item in a single test function, use '-i <index>':
backend/tests/test_dotcode -f input -i 2
@@ -75,6 +85,10 @@ To run a range of dataset items in a single test function, use '-i <start>-<end>
backend/tests/test_dotcode -f input -i 2-5
The '<start>' or '<end>' can be left out:
backend/tests/test_dotcode -f input -i 2-
To exclude a single dataset item in a single test function, use '-x <index>':
backend/tests/test_dotcode -f input -x 4
@@ -113,7 +127,7 @@ To run a test against ZXing-C++ (if any), use '-d 512':
(see also <project-dir>/backend/tests/tools/run_zxingcpp_tests.sh)
To generate test data, use '-g':
To generate test data (if available), use '-g':
backend/tests/test_dotcode -f encode -g