mirror of
https://github.com/vgough/encfs.git
synced 2024-12-11 09:11:05 +01:00
15 lines
241 B
C
15 lines
241 B
C
|
|
||
|
#ifndef UTILITIES_TEST_H_
|
||
|
#define UTILITIES_TEST_H_
|
||
|
|
||
|
#include "test.h"
|
||
|
|
||
|
TEST(UtilitiesTest, SafeDelete) {
|
||
|
int* i = new int(12);
|
||
|
ASSERT_TRUE(i != nullptr);
|
||
|
safeDelete(i);
|
||
|
ASSERT_EQ(nullptr, i);
|
||
|
}
|
||
|
|
||
|
#endif // UTILITIES_TEST_H_
|