mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
14 lines
434 B
C++
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(0 == notcurses_stop(nc_));
|
|
CHECK(atoi(NOTCURSES_VERSION_MAJOR) == major);
|
|
CHECK(atoi(NOTCURSES_VERSION_MINOR) == minor);
|
|
CHECK(atoi(NOTCURSES_VERSION_PATCH) == patch);
|
|
CHECK(atoi(NOTCURSES_VERSION_TWEAK) == tweak);
|
|
}
|