add more entity tests and build with -Wall - sfeed_tests - sfeed tests and RSS and Atom files
 (HTM) git clone git://git.codemadness.org/sfeed_tests
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f3a9c287203b71c6d25de07d48e7b75064f97f38
 (DIR) parent 4f5aeb3b65f08116176ebd48f5d91ccbb72df65f
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Fri, 12 Dec 2025 13:59:32 +0100
       
       add more entity tests and build with -Wall
       
       Diffstat:
         M xml_test_entities/build_coverage.sh |       2 +-
         M xml_test_entities/main.c            |      16 ++++++++++++++--
       
       2 files changed, 15 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/xml_test_entities/build_coverage.sh b/xml_test_entities/build_coverage.sh
       @@ -8,7 +8,7 @@ header="$(readlink -f "$0")"
        header="$(dirname "$header")/../gcov_dump.h"
        
        CC="gcc"
       -CFLAGS="-include $header -fprofile-arcs -ftest-coverage"
       +CFLAGS="-include $header -fprofile-arcs -ftest-coverage -Wall"
        LDFLAGS="-fprofile-arcs"
        
        BIN="${SFEEDDIR}/test_xml_entities"
 (DIR) diff --git a/xml_test_entities/main.c b/xml_test_entities/main.c
       @@ -81,8 +81,6 @@ main(void)
                test(buf, sizeof(buf), "&#x-0;", -1, "", -1);
                test(buf, sizeof(buf), "&#-0;", -1, "", -1);
                test(buf, sizeof(buf), "&#+1;", -1, "", -1);
       -        test(buf, sizeof(buf), "&;", -1, "", -1);
       -        test(buf, sizeof(buf), "& ;", -1, "", -1);
                test(buf, sizeof(buf), "&amp;;", -1, "", -1);
                test(buf, sizeof(buf), "&#65;;", -1, "", -1);
                test(buf, sizeof(buf), "&amp;;a", -1, "", -1);
       @@ -90,8 +88,17 @@ main(void)
                test(buf, sizeof(buf), "&# 65;", -1, "", -1);
                test(buf, sizeof(buf), "&#65", -1, "", -1);
                test(buf, sizeof(buf), "&", -1, "", -1);
       +        test(buf, sizeof(buf), "& ", -1, "", -1);
                test(buf, sizeof(buf), "&#", -1, "", -1);
       +        test(buf, sizeof(buf), "&# ", -1, "", -1);
                test(buf, sizeof(buf), "&#x", -1, "", -1);
       +        test(buf, sizeof(buf), "&#x ", -1, "", -1);
       +        test(buf, sizeof(buf), "&;", -1, "", -1);
       +        test(buf, sizeof(buf), "& ;", -1, "", -1);
       +        test(buf, sizeof(buf), "&#;", -1, "", -1);
       +        test(buf, sizeof(buf), "&# ;", -1, "", -1);
       +        test(buf, sizeof(buf), "&#x;", -1, "", -1);
       +        test(buf, sizeof(buf), "&#x ;", -1, "", -1);
        
                /* just in range (limit) */
                test(buf, sizeof(buf), "&#x10ffff;", 4, "\xf4\x8f\xbf\xbf", 4);
       @@ -100,7 +107,12 @@ main(void)
                test(buf, sizeof(buf), "&#x110000;", -1, "", -1);
                test(buf, sizeof(buf), "&#1114112;", -1, "", -1);
        
       +        test(buf, sizeof(buf), "&#x7e;", 1, "\x7e", 1);
       +        test(buf, sizeof(buf), "&#x7f;", 1, "\x7f", 1);
                /* 2 bytes */
       +        test(buf, sizeof(buf), "&#x80;", 2, "\xc2\x80", 2);
       +        test(buf, sizeof(buf), "&#xfe;", 2, "\xc3\xbe", 2);
       +        test(buf, sizeof(buf), "&#xff;", 2, "\xc3\xbf", 2);
                test(buf, sizeof(buf), "&#x0370;", 2, "\xcd\xb0", 2);
                test(buf, sizeof(buf), "&#x370;", 2, "\xcd\xb0", 2);
                test(buf, sizeof(buf), "&#x00000370;", 2, "\xcd\xb0", 2);