sammine-lang
|
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>
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]") | |
The unit-test file for all things related to a lexer.
TEST_CASE | ( | "hello (lex) world" | , |
"" | [Lexer] ) |
Simple test cases for a Lexer, test for an identifier followed by a number (both of length 1)