mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
test,unit: Change test according to change of bg color response processing
Adjust the test for handle_background_color() according to bd0275182b1c1b14c43dc4fc7e9f9da05071e56c.
This commit is contained in:
@@ -22,11 +22,13 @@
|
||||
|
||||
#define KEY_BUFFER_SIZE 0xfff
|
||||
|
||||
#ifndef UNIT_TESTING
|
||||
typedef enum {
|
||||
kIncomplete = -1,
|
||||
kNotApplicable = 0,
|
||||
kComplete = 1,
|
||||
} HandleState;
|
||||
#endif
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "tui/input.c.generated.h"
|
||||
@@ -547,7 +549,7 @@ static HandleState handle_background_color(TermInput *input)
|
||||
return kComplete;
|
||||
}
|
||||
#ifdef UNIT_TESTING
|
||||
bool ut_handle_background_color(TermInput *input)
|
||||
HandleState ut_handle_background_color(TermInput *input)
|
||||
{
|
||||
return handle_background_color(input);
|
||||
}
|
||||
|
@@ -32,7 +32,13 @@ typedef struct term_input {
|
||||
#endif
|
||||
|
||||
#ifdef UNIT_TESTING
|
||||
bool ut_handle_background_color(TermInput *input);
|
||||
typedef enum {
|
||||
kIncomplete = -1,
|
||||
kNotApplicable = 0,
|
||||
kComplete = 1,
|
||||
} HandleState;
|
||||
|
||||
HandleState ut_handle_background_color(TermInput *input);
|
||||
#endif
|
||||
|
||||
#endif // NVIM_TUI_INPUT_H
|
||||
|
Reference in New Issue
Block a user