From 234e4d730826bc37026c89edd91fb0af5806d726 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 1 Mar 2015 23:55:10 -0500 Subject: [PATCH] Unit Tests - Modified Lexer types to reflect DOM recognition. --- test/lexer.t.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lexer.t.cpp b/test/lexer.t.cpp index aeba44486..a6ab7c42d 100644 --- a/test/lexer.t.cpp +++ b/test/lexer.t.cpp @@ -98,8 +98,8 @@ int main (int argc, char** argv) tokens.push_back (std::pair (token, type)); } - t.is (tokens[0].first, "one", "tokens[0] = 'left'"); // 30 - t.is (Lexer::typeName (tokens[0].second), "identifier", "tokens[0] = identifier"); + t.is (tokens[0].first, "one", "tokens[0] = 'one'"); // 30 + t.is (Lexer::typeName (tokens[0].second), "dom", "tokens[0] = dom"); t.is (tokens[1].first, "'two 'three''", "tokens[1] = 'two 'three''"); t.is (Lexer::typeName (tokens[1].second), "string", "tokens[1] = string"); @@ -138,7 +138,7 @@ int main (int argc, char** argv) t.is (Lexer::typeName (tokens[12].second), "number", "tokens[12] = number"); t.is (tokens[13].first, "foo.bar", "tokens[13] = 'foo.bar'"); - t.is (Lexer::typeName (tokens[13].second), "identifier", "tokens[13] = identifier"); + t.is (Lexer::typeName (tokens[13].second), "dom", "tokens[13] = dom"); t.is (tokens[14].first, "and", "tokens[14] = 'and'"); // 60 t.is (Lexer::typeName (tokens[14].second), "op", "tokens[14] = op");