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:
parent
7b755b68ad
commit
96fb4d7894
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user