From c5b2b38db39d6e88566965e4748a951cab64da1a Mon Sep 17 00:00:00 2001 From: Bread <77288737+riley0122@users.noreply.github.com> Date: Mon, 3 Jun 2024 22:10:27 +0200 Subject: [PATCH] Fix tests --- Tests/lexer_test.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Tests/lexer_test.cpp b/Tests/lexer_test.cpp index 4cc50d1..ba7a909 100644 --- a/Tests/lexer_test.cpp +++ b/Tests/lexer_test.cpp @@ -2,18 +2,16 @@ #include #include -#define END '\n' - using namespace Orchid::Compiler::Frontend::Lexer; bool testWhitespace() { - std::string input = " \t\n" + END; + std::string input = " \t\n"; auto tokens = getTokens(input); return tokens.empty(); } bool testIdentifiers() { - std::string input = "foo bar" + END; + std::string input = "foo bar\n"; auto tokens = getTokens(input); return ( tokens.size() == 2 && @@ -23,7 +21,7 @@ bool testIdentifiers() { } bool testNumbers() { - std::string input = "123 456 890" + END; + std::string input = "123 456 890\n"; auto tokens = getTokens(input); return ( tokens.size() == 3 &&