From 565987a177afa770ee3893611ed33d434c55b658 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 1 Mar 2015 21:14:28 -0500 Subject: [PATCH] Unit Tests - Corrected token types for '3rd', which is Lexer::Type::word, not LExer::Type::identifier. --- test/lexer.t.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/lexer.t.cpp b/test/lexer.t.cpp index f118c8893..aeba44486 100644 --- a/test/lexer.t.cpp +++ b/test/lexer.t.cpp @@ -319,11 +319,11 @@ int main (int argc, char** argv) tokens.push_back (std::pair (token, type)); } - t.is ((int)tokens.size (), 2, "2 tokens"); - t.is (tokens[0].first, "9th", "tokens[0] == '9th'"); - t.is ((int) tokens[0].second, (int) Lexer::Type::identifier, "tokens[0] == Type::identifier"); - t.is (tokens[1].first, "10th", "tokens[1] == '10th'"); - t.is ((int) tokens[1].second, (int) Lexer::Type::identifier, "tokens[1] == Type::identifier"); + t.is ((int)tokens.size (), 2, "2 tokens"); + t.is (tokens[0].first, "9th", "tokens[0] == '9th'"); + t.is ((int) tokens[0].second, (int) Lexer::Type::word, "tokens[0] == Type::word"); + t.is (tokens[1].first, "10th", "tokens[1] == '10th'"); + t.is ((int) tokens[1].second, (int) Lexer::Type::word, "tokens[1] == Type::word"); // Test tag recognition. Lexer l9 ("+with -WITHOUT + 2");