sammine-lang
Loading...
Searching...
No Matches
test_lexer.cpp File Reference

The unit-test file for all things related to a lexer. More...

#include "lex/Lexer.h"
#include "lex/Token.h"
#include "util/Utilities.h"
#include <catch2/catch_test_macros.hpp>
Include dependency graph for test_lexer.cpp:

Functions

 TEST_CASE ("hello (lex) world", "[Lexer]")
 
 TEST_CASE ("Basic operators", "[Lexer]")
 
 TEST_CASE ("Identifiers and keywords", "[Lexer]")
 
 TEST_CASE ("Basic utility tokens", "[Lexer]")
 
 TEST_CASE ("Complex combination", "[Lexer]")
 

Detailed Description

The unit-test file for all things related to a lexer.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "hello (lex) world" ,
"" [Lexer] )

Simple test cases for a Lexer, test for an identifier followed by a number (both of length 1)