encfs/vendor/github.com/muflihun/easyloggingpp/test/utilities-test.h
Valient Gough 5f0806c5cc Add "easylogging" from "https://github.com/muflihun/easyloggingpp@master"
git-vendor-name: easylogging
git-vendor-dir: vendor/github.com/muflihun/easyloggingpp
git-vendor-repository: https://github.com/muflihun/easyloggingpp
git-vendor-ref: master
2017-08-05 23:23:41 -07:00

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_