lexer can now read single character tokens
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
#include "token/type.hpp"
|
||||
|
||||
#include <doctest.h>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
TEST_CASE("next token") {
|
||||
@ -12,8 +13,9 @@ TEST_CASE("next token") {
|
||||
};
|
||||
|
||||
std::string input = "=+(){},;";
|
||||
std::istringstream ss(input);
|
||||
|
||||
lexer::lexer l{};
|
||||
lexer::lexer l{ss};
|
||||
|
||||
test tests[] = {
|
||||
{token::type::ASSIGN, "="},
|
||||
|
Reference in New Issue
Block a user