0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Add comparison operator serialization tests

This commit is contained in:
Roland Bock 2023-10-14 09:03:46 +02:00
parent 7b755b68ad
commit 96fb4d7894

View File

@ -46,5 +46,13 @@ int Operator(int, char* [])
compare(__LINE__, sqlpp::value(3) >> foo.psi, "(3>>tab_foo.psi)");
compare(__LINE__, bar.alpha >> 3u, "(tab_bar.alpha>>3)");
// Comparison
compare(__LINE__, bar.alpha < 3u, "(tab_bar.alpha<3)");
compare(__LINE__, bar.alpha <= 3u, "(tab_bar.alpha<=3)");
compare(__LINE__, bar.alpha == 3u, "(tab_bar.alpha=3)");
compare(__LINE__, bar.alpha != 3u, "(tab_bar.alpha<>3)");
compare(__LINE__, bar.alpha >= 3u, "(tab_bar.alpha>=3)");
compare(__LINE__, bar.alpha > 3u, "(tab_bar.alpha>3)");
return 0;
}