Skip to content

Commit

Permalink
Updated gtest
Browse files Browse the repository at this point in the history
  • Loading branch information
amirbawab committed May 6, 2017
1 parent 01cc46c commit 66b745b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/lexical/token/LexicalTokenTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
#include <gtest/gtest.h>

TEST(LexicalTokenTest, constructorValues) {
ecc::LexicalToken lexicalTokenNormal(ecc::LexicalToken::Type::NORMAL_TOKEN,"name", "value", 1, 2, 3);
ecc::LexicalToken lexicalTokenError(ecc::LexicalToken::Type::ERROR_TOKEN,"name", "value", 1, 2, 3);
ecc::LexicalToken lexicalTokenNormal(ecc::LexicalToken::Type::NORMAL_TOKEN,"name", "value", 1, 2);
ecc::LexicalToken lexicalTokenError(ecc::LexicalToken::Type::ERROR_TOKEN,"name", "value", 1, 2);
EXPECT_EQ(lexicalTokenNormal.getLine(),1);
EXPECT_EQ(lexicalTokenNormal.getColumn(),2);
EXPECT_EQ(lexicalTokenNormal.getPosition(),3);
EXPECT_EQ(lexicalTokenNormal.getName(),"name");
EXPECT_EQ(lexicalTokenNormal.getValue(),"value");
EXPECT_EQ(lexicalTokenNormal.getType(), ecc::LexicalToken::Type::NORMAL_TOKEN);
Expand Down

0 comments on commit 66b745b

Please sign in to comment.