-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use EXPECT instead of ASSERT (repeat 582738b) (#27850)
Summary: This change will keep project consistency. This change repeat the previous commit 582738b. That was created by sammy-SC and reviewed by shergin That changed * `ASSERT_TRUE` -> `EXPECT_TRUE` * `ASSERT_NEAR` -> `EXPECT_NEAR` * `ASSERT_EQ` -> `EXPECT_EQ` That said > 1. Replace ASSERT_* with EXPECT_*. Assert is a fatal assertion. Expect is non-fatal assertion. So if assert fails, tests do not continue and therefore provide less information. > > 2. Rename tests in `RawPropsTest.cpp` from `ShadowNodeTest` to `RawPropsTest`. > > Source: https://github.com/google/googletest/blob/master/googletest/docs/primer.md#basic-assertions ## Changelog [CATEGORY] [TYPE] - Message Pull Request resolved: #27850 Differential Revision: D19568014 Pulled By: shergin fbshipit-source-id: 7c22cd1c7ec919675e834a060bd5e681d43a8baf
- Loading branch information
1 parent
6f4d187
commit 0507d73
Showing
4 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters