lib_id_ut.cpp 570 B

1234567891011121314151617181920212223
  1. #include <library/cpp/testing/unittest/registar.h>
  2. #include <yql/essentials/minikql/jsonpath/rewrapper/proto/serialization.pb.h>
  3. #include <util/system/platform.h>
  4. /*
  5. * Paranoid test to check correct regexp library is used
  6. */
  7. namespace NYql::NJsonPath {
  8. extern ui32 GetReLibId();
  9. Y_UNIT_TEST_SUITE(RegexpLib) {
  10. Y_UNIT_TEST(DefaultLib) {
  11. #ifdef __x86_64__
  12. UNIT_ASSERT_VALUES_EQUAL(GetReLibId(), (ui32)NReWrapper::TSerialization::kHyperscan);
  13. #else
  14. UNIT_ASSERT_VALUES_EQUAL(GetReLibId(), (ui32)NReWrapper::TSerialization::kRe2);
  15. #endif
  16. }
  17. }
  18. }