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

Closed
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.
saqut closed this issue 2026-06-14 21:53:16 +03:00
Sign in to join this conversation.
No description provided.