Skip to content

Commit 70efa6f

Browse files
committed
fix: Build on macOS
Signed-off-by: Yash Pandey (YP) <[email protected]>
1 parent 51e01fb commit 70efa6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/enforcer_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,22 +104,22 @@ TEST(TestEnforcer, ABACData) {
104104
};
105105

106106
auto data = casbin::GetData(params);
107-
EXPECT_EQ(params, data->GetAttributes());
107+
ASSERT_TRUE(params == data->GetAttributes());
108108

109109
data->DeleteAttribute("Name");
110110
params = {
111111
{ "Grade", 8.6f },
112112
{ "Age", 18 },
113113
};
114-
EXPECT_EQ(params, data->GetAttributes());
114+
ASSERT_TRUE(params == data->GetAttributes());
115115

116116
data->AddAttribute("ID", 156);
117117
params["ID"] = 156;
118-
EXPECT_EQ(params, data->GetAttributes());
118+
ASSERT_TRUE(params == data->GetAttributes());
119119

120120
data->UpdateAttribute("ID", 152);
121121
params["ID"] = 152;
122-
EXPECT_EQ(params, data->GetAttributes());
122+
ASSERT_TRUE(params == data->GetAttributes());
123123
}
124124

125125
} // namespace

0 commit comments

Comments
 (0)