assert exception equal code example
Example 1: gtest assert not equal
ASSERT_NE(1, 2) // true
ASSERT_NE("fds", "fds") // false
Example 2: assert
In simple words, if the assert condition is true then the
program control will execute the next test step but if the condition is
false, the execution will stop and further test step will not be executed.