diff --git a/tests/test_parse.py b/tests/test_parse.py index 6743be6..7a7408e 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -25,6 +25,9 @@ tokens = tokenizer.tokenize() assert tokens[0].type == "text" assert tokens[0].value == text + assert tokens[0].location.line == 1 + assert tokens[0].location.column == 1 + assert tokens[0].location.file == "" assert tokens[1].type == "EOF" @@ -48,6 +51,9 @@ tokens = tokenizer.tokenize() assert tokens[0].type == "bool" assert tokens[0].value == bool + assert tokens[0].location.line == 1 + assert tokens[0].location.column == 1 + assert tokens[0].location.file == "" assert tokens[1].type == "EOF" @@ -72,6 +78,9 @@ tokens = tokenizer.tokenize() assert tokens[0].type == "keyword" assert tokens[0].value == keyword + assert tokens[0].location.line == 1 + assert tokens[0].location.column == 1 + assert tokens[0].location.file == "" assert tokens[1].type == "EOF" @@ -83,6 +92,9 @@ tokens = tokenizer.tokenize() assert tokens[0].type == "symbol" assert tokens[0].value == symbol + assert tokens[0].location.line == 1 + assert tokens[0].location.column == 1 + assert tokens[0].location.file == "" assert tokens[1].type == "EOF" @@ -95,3 +107,4 @@ assert tokens[0].type == "EOF" assert tokens[0].location.line == 2 assert tokens[0].location.column == 0 + assert tokens[0].location.file == ""