Skip to content

Commit

Permalink
Issue #96 Adds the TestJSONValueType test
Browse files Browse the repository at this point in the history
  • Loading branch information
DieSlower committed Jan 19, 2019
1 parent a11ecca commit 4c9a826
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion Tests/TrUtil/JsonTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,24 @@ TEST_F(JsonTests, TestJsonValueType)
EXPECT_EQ(Json::ValueType::booleanValue, 5);
EXPECT_EQ(Json::ValueType::arrayValue, 6);
EXPECT_EQ(Json::ValueType::objectValue, 7);
}
}

/**
* @fn TEST_F(JsonTests, TestJSONValueType)
*
* @brief Constructor.
*
* @param parameter1 The first parameter.
* @param parameter2 The second parameter.
*/
TEST_F(JsonTests, TestJSONValueType)
{
EXPECT_EQ(trUtil::JSON::ValueType::NullValue, 0);
EXPECT_EQ(trUtil::JSON::ValueType::IntValue, 1);
EXPECT_EQ(trUtil::JSON::ValueType::UintValue, 2);
EXPECT_EQ(trUtil::JSON::ValueType::RealValue, 3);
EXPECT_EQ(trUtil::JSON::ValueType::StringValue, 4);
EXPECT_EQ(trUtil::JSON::ValueType::BooleanValue, 5);
EXPECT_EQ(trUtil::JSON::ValueType::ArrayValue, 6);
EXPECT_EQ(trUtil::JSON::ValueType::ObjectValue, 7);
}

0 comments on commit 4c9a826

Please sign in to comment.