Skip to content

Commit

Permalink
関数名変更の適応し忘れを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryosuke committed Aug 24, 2022
1 parent e00d4f5 commit 74a2b91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions kernel/tests/tokenizer_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ piyo")", nullptr, nullptr},
int pipe = -1, *p_pipe = &pipe;
struct TokenizerInnerState *t = tbl[i].iis;

t = tokenize(tbl[i].linebuf, tokens, p_redir, p_pipe, t);
t = Tokenize(tbl[i].linebuf, tokens, p_redir, p_pipe, t);
// return val check

if (!isTISsame(t, tbl[i].eis)) { PrintTis(t); PrintTis(tbl[i].eis); printf(" \e[38;5;9mERR: invalid return val\e[0m\n"); ret = -1; }
if (!IsTisSame(t, tbl[i].eis)) { PrintTis(t); PrintTis(tbl[i].eis); printf(" \e[38;5;9mERR: invalid return val\e[0m\n"); ret = -1; }
// size of tokens check
if (tokens.size() != tbl[i].expected) {
printf(" \e[38;5;9mERR: num of tokens. expected %d but %zu.\e[0m\n", tbl[i].expected, tokens.size());
Expand Down
6 changes: 3 additions & 3 deletions kernel/tests/tokenizer_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

#include "../tokenizer.hpp"

bool isTISsame(struct TokenizerInnerState *tis1, struct TokenizerInnerState *tis2);
void printTIS(struct TokenizerInnerState *tis);
int test_tokenize();
bool IsTisSame(struct TokenizerInnerState *tis1, struct TokenizerInnerState *tis2);
void PrintTis(struct TokenizerInnerState *tis);
int TestTokenize();

0 comments on commit 74a2b91

Please sign in to comment.