From 74f8c0737f75721da9a079283a49e828717e6dfa Mon Sep 17 00:00:00 2001 From: Dan Keenan Date: Sun, 20 Feb 2022 11:28:00 -0500 Subject: [PATCH] Update tests --- test/test_Group.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/test/test_Group.cpp b/test/test_Group.cpp index 4bd43ea..83b1a01 100644 --- a/test/test_Group.cpp +++ b/test/test_Group.cpp @@ -268,32 +268,34 @@ TEST_F(GroupTest, createSceneAction) TEST(CreateGroup, LightGroup) { - EXPECT_EQ(nlohmann::json({{"lights", {"1"}}, {"type", "LightGroup"}, {"name", "Name"}}), + EXPECT_EQ(nlohmann::json({{"lights", {"1"}}, {"type", "LightGroup"}, {"name", "Name"}, {"class", "Other"}}), CreateGroup::LightGroup({1}, "Name").getRequest()); - EXPECT_EQ( - nlohmann::json({{"lights", {"2", "4"}}, {"type", "LightGroup"}}), CreateGroup::LightGroup({2, 4}).getRequest()); + EXPECT_EQ(nlohmann::json({{"lights", {"2", "4"}}, {"type", "LightGroup"}, {"class", "Other"}}), + CreateGroup::LightGroup({2, 4}).getRequest()); } TEST(CreateGroup, Entertainment) { - EXPECT_EQ(nlohmann::json({{"lights", {"1"}}, {"type", "Entertainment"}, {"name", "Name"}}), + EXPECT_EQ(nlohmann::json({{"lights", {"1"}}, {"type", "Entertainment"}, {"name", "Name"}, {"class", "Other"}}), CreateGroup::Entertainment({1}, "Name").getRequest()); - EXPECT_EQ(nlohmann::json({{"lights", {"2", "4"}}, {"type", "Entertainment"}}), + EXPECT_EQ(nlohmann::json({{"lights", {"2", "4"}}, {"type", "Entertainment"}, {"class", "Other"}}), CreateGroup::Entertainment({2, 4}).getRequest()); } TEST(CreateGroup, Zone) { - EXPECT_EQ(nlohmann::json({{"lights", {"1"}}, {"type", "Zone"}, {"name", "Name"}}), + EXPECT_EQ(nlohmann::json({{"lights", {"1"}}, {"type", "Zone"}, {"name", "Name"}, {"class", "Other"}}), CreateGroup::Zone({1}, "Name").getRequest()); - EXPECT_EQ(nlohmann::json({{"lights", {"2", "4"}}, {"type", "Zone"}}), CreateGroup::Zone({2, 4}).getRequest()); + EXPECT_EQ(nlohmann::json({{"lights", {"2", "4"}}, {"type", "Zone"}, {"class", "Other"}}), + CreateGroup::Zone({2, 4}).getRequest()); } TEST(CreateGroup, Room) { - EXPECT_EQ(nlohmann::json({{"lights", {"1"}}, {"type", "Room"}, {"name", "Name"}, {"class", "Bedroom"}}), + EXPECT_EQ(nlohmann::json({{"lights", {"1"}}, {"type", "Room"}, {"name", "Name"}, {"class", "Bedroom"}, {"class", "Other"}}), CreateGroup::Room({1}, "Name", "Bedroom").getRequest()); - EXPECT_EQ(nlohmann::json({{"lights", {"1"}}, {"type", "Room"}, {"name", "Name"}}), + EXPECT_EQ(nlohmann::json({{"lights", {"1"}}, {"type", "Room"}, {"name", "Name"}, {"class", "Other"}}), CreateGroup::Room({1}, "Name").getRequest()); - EXPECT_EQ(nlohmann::json({{"lights", {"2", "4"}}, {"type", "Room"}}), CreateGroup::Room({2, 4}).getRequest()); -} \ No newline at end of file + EXPECT_EQ(nlohmann::json({{"lights", {"2", "4"}}, {"type", "Room"}, {"class", "Other"}}), + CreateGroup::Room({2, 4}).getRequest()); +} -- libgit2 0.21.4