Update file main_test.c
This commit is contained in:
parent
3866859c3f
commit
abdcad6b3a
|
|
@ -51,11 +51,21 @@ UTEST(scanner, assignment) {
|
||||||
UTEST(scanner, hello) {
|
UTEST(scanner, hello) {
|
||||||
struct token_st tokens[] = {
|
struct token_st tokens[] = {
|
||||||
{TOKEN_IDENTIFICATION, "IDENTIFICATION"},
|
{TOKEN_IDENTIFICATION, "IDENTIFICATION"},
|
||||||
{TOKEN_PROGRAM_ID, "PROGRAM-ID. HELLO-WORLD."}
|
{TOKEN_KEYWORD_DIVISION, "DIVISION"},
|
||||||
{TOKEN_PROCEDURE_DIVISION, "PROCEDURE DIVISION."},
|
{TOKEN_DOT, "."},
|
||||||
{TOKEN_STRING, "Hello World!"},
|
{TOKEN_PROGRAM_ID, "PROGRAM-ID"},
|
||||||
{TOKEN_KEYWORD_PRINT, "DISPLAY"},
|
{TOKEN_DOT, "."},
|
||||||
{TOKEN_EOF, "STOP RUN."},
|
{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) {
|
UTEST(scanner, sample) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue