aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-05 12:59:43 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-05 19:43:16 +0800
commitc11417b3d74f02568e37ea3370a7c24141d4f18a (patch)
treee1f359d22125f4b6c046d66b2595a70db7989ef2 /src/nvim/eval.h
parent49c3eb01ab53c4f6bb3f372590878d46ef0c163a (diff)
downloadrneovim-c11417b3d74f02568e37ea3370a7c24141d4f18a.tar.gz
rneovim-c11417b3d74f02568e37ea3370a7c24141d4f18a.tar.bz2
rneovim-c11417b3d74f02568e37ea3370a7c24141d4f18a.zip
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) https://github.com/vim/vim/commit/53f5e51628b56ef9171671cd6e9970374036a084 Move assert_type_T to testing.c and remove ASSERT_INRANGE.
Diffstat (limited to 'src/nvim/eval.h')
-rw-r--r--src/nvim/eval.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nvim/eval.h b/src/nvim/eval.h
index e9cdb108a8..5fbfc4702c 100644
--- a/src/nvim/eval.h
+++ b/src/nvim/eval.h
@@ -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,