And make them part of the blender_test runner. The one exception is blenlib performance tests, which we don't want to run by default. They remain in their own executable. Differential Revision: https://developer.blender.org/D8498
21 lines
443 B
C++
21 lines
443 B
C++
/* Apache License, Version 2.0 */
|
|
|
|
#include "testing/testing.h"
|
|
|
|
#include "BLI_session_uuid.h"
|
|
|
|
TEST(SessionUUID, GenerateBasic)
|
|
{
|
|
{
|
|
const SessionUUID uuid = BLI_session_uuid_generate();
|
|
EXPECT_TRUE(BLI_session_uuid_is_generated(&uuid));
|
|
}
|
|
|
|
{
|
|
const SessionUUID uuid1 = BLI_session_uuid_generate();
|
|
const SessionUUID uuid2 = BLI_session_uuid_generate();
|
|
|
|
EXPECT_FALSE(BLI_session_uuid_is_equal(&uuid1, &uuid2));
|
|
}
|
|
}
|