/
UCS
/
sqlite_orm
Обзор
Документация
Войти
/
UCS
/
sqlite_orm
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
tests/static_tests/compound_operators.cpp
17 строк
901 B
klaus triendl
Updated to Catch2 v3
15 янв 2023, 22:59
15 янв 2023, 22:59
3154d24
Код
Авторство
О чём код?
#include <sqlite_orm/sqlite_orm.h> #include <catch2/catch_all.hpp> #include "static_tests_common.h" using namespace sqlite_orm; TEST_CASE("Compound operators") { auto unionValue = union_(select(&User::id), select(&Token::id)); STATIC_REQUIRE(internal::is_base_of_template<decltype(unionValue), internal::compound_operator>::value); auto unionAllValue = union_all(select(&User::id), select(&Token::id)); STATIC_REQUIRE(internal::is_base_of_template<decltype(unionAllValue), internal::compound_operator>::value); auto exceptValue = except(select(&User::id), select(&Token::id)); STATIC_REQUIRE(internal::is_base_of_template<decltype(exceptValue), internal::compound_operator>::value); auto intersectValue = intersect(select(&User::id), select(&Token::id)); STATIC_REQUIRE(internal::is_base_of_template<decltype(intersectValue), internal::compound_operator>::value); }