ddnet/src/test/git_revision.cpp
heinrich5991 8b3f0246a9 Use EXPECT_* rather than ASSERT_* in tests
`EXPECT_*` allows the test to continue even in the case of failure. Use
this where it makes sense to continue.
2019-03-12 02:06:54 +01:00

13 lines
182 B
C++

#include <gtest/gtest.h>
#include <base/system.h>
#include <game/version.h>
TEST(GitRevision, ExistsOrNull)
{
if(GIT_SHORTREV_HASH)
{
EXPECT_STRNE(GIT_SHORTREV_HASH, "");
}
}