You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
notcurses/src/tests/version.cpp

14 lines
434 B
C++

#include "main.h"
TEST_CASE("Version") {
auto nc_ = testing_notcurses();
REQUIRE(nullptr != nc_);
int major, minor, patch, tweak;
notcurses_version_components(&major, &minor, &patch, &tweak);
CHECK(atoi(NOTCURSES_VERSION_MAJOR) == major);
CHECK(atoi(NOTCURSES_VERSION_MINOR) == minor);
CHECK(atoi(NOTCURSES_VERSION_PATCH) == patch);
CHECK(atoi(NOTCURSES_VERSION_TWEAK) == tweak);
CHECK(0 == notcurses_stop(nc_));
}