aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/minikql/jsonpath/ut/lib_id_ut.cpp
blob: cea2d8577b026c62be441ef8c4ef148b0ac3724b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <library/cpp/testing/unittest/registar.h>
#include <yql/essentials/minikql/jsonpath/rewrapper/proto/serialization.pb.h>
#include <util/system/platform.h>

/*
 * Paranoid test to check correct regexp library is used
 */

namespace NYql::NJsonPath {

extern ui32 GetReLibId();

Y_UNIT_TEST_SUITE(RegexpLib) {
    Y_UNIT_TEST(DefaultLib) {
#ifdef __x86_64__
        UNIT_ASSERT_VALUES_EQUAL(GetReLibId(), (ui32)NReWrapper::TSerialization::kHyperscan);
#else
        UNIT_ASSERT_VALUES_EQUAL(GetReLibId(), (ui32)NReWrapper::TSerialization::kRe2);
#endif
    }
}

}