Update file main_test.c

This commit is contained in:
Joshua Garbi 2024-10-24 10:53:28 -07:00
parent 3866859c3f
commit abdcad6b3a
1 changed files with 15 additions and 5 deletions

View File

@ -51,11 +51,21 @@ UTEST(scanner, assignment) {
UTEST(scanner, hello) {
struct token_st tokens[] = {
{TOKEN_IDENTIFICATION, "IDENTIFICATION"},
{TOKEN_PROGRAM_ID, "PROGRAM-ID. HELLO-WORLD."}
{TOKEN_PROCEDURE_DIVISION, "PROCEDURE DIVISION."},
{TOKEN_STRING, "Hello World!"},
{TOKEN_KEYWORD_PRINT, "DISPLAY"},
{TOKEN_EOF, "STOP RUN."},
{TOKEN_KEYWORD_DIVISION, "DIVISION"},
{TOKEN_DOT, "."},
{TOKEN_PROGRAM_ID, "PROGRAM-ID"},
{TOKEN_DOT, "."},
{TOKEN_IDENT, "HELLO-WORLD"},
{TOKEN_DOT, "."},
{TOKEN_PROCEDURE, "PROCEDURE"},
{TOKEN_KEYWORD_DIVISION, "DIVISION"},
{TOKEN_DOT, "."},
{TOKEN_DISPLAY, "DISPLAY"},
{TOKEN_STRING, "'Hello World!'"},
{TOKEN_STOP, "STOP"},
{TOKEN_RUN, "RUN"},
{TOKEN_DOT, "."},
{TOKEN_EOF, ""},
};
UTEST(scanner, sample) {