@@ -9256,6 +9256,8 @@ fill_assert_error(
92569256 {
92579257 if (atype == ASSERT_MATCH || atype == ASSERT_NOTMATCH )
92589258 ga_concat (gap , (char_u * )"Pattern " );
9259+ else if (atype == ASSERT_NOTEQUAL )
9260+ ga_concat (gap , (char_u * )"Expected not equal to " );
92599261 else
92609262 ga_concat (gap , (char_u * )"Expected " );
92619263 if (exp_str == NULL )
@@ -9265,16 +9267,17 @@ fill_assert_error(
92659267 }
92669268 else
92679269 ga_concat_esc (gap , exp_str );
9268- if (atype == ASSERT_MATCH )
9269- ga_concat (gap , (char_u * )" does not match " );
9270- else if (atype == ASSERT_NOTMATCH )
9271- ga_concat (gap , (char_u * )" does match " );
9272- else if (atype == ASSERT_NOTEQUAL )
9273- ga_concat (gap , (char_u * )" differs from " );
9274- else
9275- ga_concat (gap , (char_u * )" but got " );
9276- ga_concat_esc (gap , tv2string (got_tv , & tofree , numbuf , 0 ));
9277- vim_free (tofree );
9270+ if (atype != ASSERT_NOTEQUAL )
9271+ {
9272+ if (atype == ASSERT_MATCH )
9273+ ga_concat (gap , (char_u * )" does not match " );
9274+ else if (atype == ASSERT_NOTMATCH )
9275+ ga_concat (gap , (char_u * )" does match " );
9276+ else
9277+ ga_concat (gap , (char_u * )" but got " );
9278+ ga_concat_esc (gap , tv2string (got_tv , & tofree , numbuf , 0 ));
9279+ vim_free (tofree );
9280+ }
92789281 }
92799282}
92809283
0 commit comments