mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
8b3f0246a9
`EXPECT_*` allows the test to continue even in the case of failure. Use this where it makes sense to continue.
13 lines
182 B
C++
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, "");
|
|
}
|
|
}
|