auto-sync
This commit is contained in:
parent
129f14cbcc
commit
2b3ceb7082
|
@ -64,6 +64,9 @@ void resetConsoleActions(void);
|
|||
void helpCommand(void);
|
||||
void initConsoleLogic(void);
|
||||
void handleConsoleLine(char *line);
|
||||
int findEndOfToken(const char *line);
|
||||
|
||||
|
||||
void addConsoleAction(const char *token, Void callback);
|
||||
void addConsoleActionP(const char *token, VoidPtr callback, void *param);
|
||||
|
||||
|
|
|
@ -275,6 +275,10 @@ void testConsoleLogic(void) {
|
|||
|
||||
helpCommand();
|
||||
|
||||
char * cmd = "he ha";
|
||||
assertEquals(2, findEndOfToken(cmd));
|
||||
|
||||
|
||||
char *ptr = validateSecureLine(UNKNOWN_COMMAND);
|
||||
assertEquals(0, strcmp(UNKNOWN_COMMAND, ptr));
|
||||
assertEquals(10, tokenLength(UNKNOWN_COMMAND));
|
||||
|
|
Loading…
Reference in New Issue