vim-patch:9.0.1507: assert message is confusing with boolean result

Problem:    Assert message is confusing with boolean result.  assert_inrange()
            replaces message instead of adding it.
Solution:   Don't put quotes around expected boolean value.  Append message
            for assert_inrange(). (closes vim/vim#12342, closes vim/vim#12341)

53f5e51628

Move assert_type_T to testing.c and remove ASSERT_INRANGE.
This commit is contained in:
zeertzjq
2023-05-05 12:59:43 +08:00
parent 49c3eb01ab
commit c11417b3d7
3 changed files with 27 additions and 33 deletions

View File

@@ -229,16 +229,6 @@ typedef struct {
Callback callback;
} timer_T;
/// Type of assert_* check being performed
typedef enum {
ASSERT_EQUAL,
ASSERT_NOTEQUAL,
ASSERT_MATCH,
ASSERT_NOTMATCH,
ASSERT_INRANGE,
ASSERT_OTHER,
} assert_type_T;
/// types for expressions.
typedef enum {
EXPR_UNKNOWN = 0,