Remove use of ASSERT_THAT
This commit is contained in:
parent
4c658d7811
commit
78a4c6d730
5 changed files with 53 additions and 54 deletions
|
|
@ -9,7 +9,7 @@ TEST(ScopeGuard, normal_run_fun_on_destruction_1)
|
|||
{
|
||||
bool result = false;
|
||||
auto sg = scopeGuard([&result]() { result = true; });
|
||||
ASSERT_THAT(result, Eq(false));
|
||||
ASSERT_FALSE(result);
|
||||
}
|
||||
|
||||
TEST(ScopeGuard, normal_run_fun_on_destruction_2)
|
||||
|
|
@ -19,7 +19,7 @@ TEST(ScopeGuard, normal_run_fun_on_destruction_2)
|
|||
auto sg = scopeGuard([&result]() { result = true; });
|
||||
}
|
||||
|
||||
ASSERT_THAT(result, Eq(true));
|
||||
ASSERT_TRUE(result);
|
||||
}
|
||||
|
||||
TEST(ScopeGuard, dismiss)
|
||||
|
|
@ -30,7 +30,7 @@ TEST(ScopeGuard, dismiss)
|
|||
sg.dismiss();
|
||||
}
|
||||
|
||||
ASSERT_THAT(result, Eq(false));
|
||||
ASSERT_FALSE(result);
|
||||
}
|
||||
|
||||
TEST(ScopeGuard, SCOPE_EXIT_macro_1)
|
||||
|
|
@ -38,7 +38,7 @@ TEST(ScopeGuard, SCOPE_EXIT_macro_1)
|
|||
bool result = false;
|
||||
{
|
||||
SCOPE_EXIT { result = true; };
|
||||
ASSERT_THAT(result, Eq(false)); // prove previous statement hasn't run yet
|
||||
ASSERT_FALSE(result); // prove previous statement hasn't run yet
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -50,7 +50,7 @@ TEST(ScopeGuard, SCOPE_EXIT_macro_2)
|
|||
SCOPE_EXIT { result = true; };
|
||||
}
|
||||
|
||||
ASSERT_THAT(result, Eq(true));
|
||||
ASSERT_TRUE(result);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue