diff options
Diffstat (limited to 'src/nvim/testing.c')
-rw-r--r-- | src/nvim/testing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testing.c b/src/nvim/testing.c index f0b84c0eab..07e1fe424b 100644 --- a/src/nvim/testing.c +++ b/src/nvim/testing.c @@ -178,7 +178,7 @@ static int assert_match_common(typval_T *argvars, assert_type_T atype) if (pat == NULL || text == NULL) { emsg(_(e_invarg)); - } else if (pattern_match((char_u *)pat, (char_u *)text, false) + } else if (pattern_match((char *)pat, (char *)text, false) != (atype == ASSERT_MATCH)) { garray_T ga; prepare_assert_error(&ga); |