initialize nc_ in notcurses tests #54

This commit is contained in:
nick black 2019-11-26 20:46:46 -05:00
parent 9f334f88df
commit 728d4775b6
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 8 additions and 2 deletions

View File

@ -13,7 +13,6 @@ class EGCPoolTest : public :: testing::Test {
}
egcpool pool_{};
};
TEST_F(EGCPoolTest, Initialized) {

View File

@ -22,9 +22,16 @@ class NotcursesTest : public :: testing::Test {
}
}
struct notcurses* nc_;
struct notcurses* nc_{};
};
TEST_F(NotcursesTest, NotcursesVersionString) {
const char* ver = notcurses_version();
ASSERT_NE(nullptr, ver);
ASSERT_LT(0, strlen(ver));
std::cout << "notcurses version " << ver << std::endl;
}
TEST_F(NotcursesTest, BasicLifetime) {
}