diff options
| -rw-r--r-- | tests/json/t-json.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/tests/json/t-json.c b/tests/json/t-json.c index 07b99847..f5b27939 100644 --- a/tests/json/t-json.c +++ b/tests/json/t-json.c @@ -125,7 +125,9 @@ test_contains (cjson_t needle, cjson_t hay)      }    if (cjson_is_string (needle))      { -      if (strcmp (needle->valuestring, hay->valuestring)) +      if (strcmp (needle->valuestring, hay->valuestring) && +          /* Use * as a general don't care placeholder */ +          strcmp (needle->valuestring, "*"))          {            if (verbose)              fprintf (stderr, "%s: string mismatch Expected '%s' got '%s'\n", | 
