From 96fb4d78943e7a8bc9212a7a64b70a09cfe88689 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Sat, 14 Oct 2023 09:03:46 +0200 Subject: [PATCH] Add comparison operator serialization tests --- tests/core/serialize/Operator.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/core/serialize/Operator.cpp b/tests/core/serialize/Operator.cpp index 3228c6d2..f3dbc186 100644 --- a/tests/core/serialize/Operator.cpp +++ b/tests/core/serialize/Operator.cpp @@ -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; }