blob: eeb95d1cde7e6f70f865abf61ec1fc5c52e294ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <library/cpp/tvmauth/version.h>
#include <library/cpp/testing/unittest/registar.h>
#include <regex>
using namespace NTvmAuth;
Y_UNIT_TEST_SUITE(VersionTest) {
Y_UNIT_TEST(base64Test) {
const std::regex re(R"(^\d+\.\d+\.\d+$)");
for (size_t idx = 0; idx < 2; ++idx) {
TStringBuf ver = LibVersion();
UNIT_ASSERT(std::regex_match(ver.begin(), ver.end(), re));
}
}
}
|