Asama 7.1 — Set up Google Test framework and write initial tests #58

Open
opened 2026-05-26 19:53:08 +03:00 by saqut · 0 comments
Owner

Goal: Create a proper testing infrastructure.

Files to create/modify:

  • tests/ directory
  • tests/lexer_test.cpp, tokenizer_test.cpp, parser_test.cpp, symbol_test.cpp
  • CMakeLists.txt with test target

Requirements:

  • Use Google Test.
  • Initial tests: lexing numbers, tokenizing keywords, parsing expressions, symbol collection.
  • make test runs all tests.

Success criteria:

  • At least 10 passing tests.
  • Failures show expected vs actual.
**Goal:** Create a proper testing infrastructure. **Files to create/modify:** - tests/ directory - tests/lexer_test.cpp, tokenizer_test.cpp, parser_test.cpp, symbol_test.cpp - CMakeLists.txt with test target **Requirements:** - Use Google Test. - Initial tests: lexing numbers, tokenizing keywords, parsing expressions, symbol collection. - make test runs all tests. **Success criteria:** - At least 10 passing tests. - Failures show expected vs actual.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: saqut/saqut-compiler#58
No description provided.