blob: f13d4683e2510a5ac3de3ace77d5e479cd877a72 (
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));
}
}
}
|