merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 2ad16563ba4989851533851a82238ea539769c67
parent 363da860d2ca46bc5af2fc1c5812ba3d238e80c6
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Fri, 10 Apr 2026 12:16:21 +0200

build: merge

Diffstat:
Msrc/util/test_validators.c | 17++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/util/test_validators.c b/src/util/test_validators.c @@ -137,7 +137,6 @@ check_phone (void) {"+1-800-FLOWERS", NULL, false}, /* Invalid phone numbers */ - {NULL, NULL, false}, {"", NULL, false}, {"202-555-0173", NULL, false}, /* Missing + */ {"1-202-555-0173", NULL, false}, /* Missing + */ @@ -161,8 +160,8 @@ check_phone (void) for (unsigned int i = 0; i < num_tests; i++) { - char *result = TALER_MERCHANT_phone_valid (tests[i].phone, - tests[i].allow_letters); + char *result = TALER_MERCHANT_phone_validate_normalize (tests[i].phone, + tests[i].allow_letters); bool success; if (NULL == tests[i].expected_normalized) @@ -197,9 +196,17 @@ check_phone (void) int main (void) { - if (! check_email ()) + if (check_email ()) + { + fprintf (stderr, + "email failed\n"); return 1; - if (! check_phone ()) + } + if (check_phone ()) + { + fprintf (stderr, + "phone failed\n"); return 1; + } return 0; }