From 81799f3e41ad9cab305930b7743a752003ff16ec Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 30 Aug 2026 22:42:20 +0200 Subject: feat: sized memory stores bia ^ --- tests/lexer_test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/lexer_test.c') diff --git a/tests/lexer_test.c b/tests/lexer_test.c index 11b15b9..f677793 100644 --- a/tests/lexer_test.c +++ b/tests/lexer_test.c @@ -45,6 +45,15 @@ static void test_keywords(struct TestContext* context) check(context, scan_token(&lexer).type == TOKEN_IDENTIFIER); } +static void test_size_keywords(struct TestContext* context) +{ + struct Lexer lexer = create_lexer("byte word dword qword"); + check(context, scan_token(&lexer).type == TOKEN_BYTE); + check(context, scan_token(&lexer).type == TOKEN_WORD); + check(context, scan_token(&lexer).type == TOKEN_DWORD); + check(context, scan_token(&lexer).type == TOKEN_QWORD); +} + static void test_line_counting(struct TestContext* context) { struct Lexer lexer = create_lexer("a\nb\nc"); @@ -70,6 +79,7 @@ void run_lexer_tests(struct TestContext* context) test_operators(context); test_literals(context); test_keywords(context); + test_size_keywords(context); test_line_counting(context); test_comments(context); } -- cgit v1.3