From fd65dc2fae3c3b85edf9dd45cab44cca27fab6b5 Mon Sep 17 00:00:00 2001
From: Utz-Uwe Haus <uhaus@cray.com>
Date: Mon, 8 Feb 2021 16:37:35 +0100
Subject: [PATCH] add unit test exhibiting issue jsc/#16

---
 tests/check_cdo_selectors.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/tests/check_cdo_selectors.c b/tests/check_cdo_selectors.c
index e2ed5bfb..6a55f3c2 100644
--- a/tests/check_cdo_selectors.c
+++ b/tests/check_cdo_selectors.c
@@ -154,4 +154,12 @@ CHEAT_TEST(core_cdo_selector_or_and,
            )
 
 
-           
+CHEAT_TEST(ecmwf_int_comparison,
+           /* https://gitlab.version.fz-juelich.de/maestro/maestro-core/-/issues/16 */
+	   /* parsing of integral CDO selector values */
+           const char *s = "(.maestro.ecmwf.param = 2)";
+	   cheat_assert(MSTRO_OK==mstro_selector_parse(s,&q));
+	   cheat_yield();
+	   cheat_assert(MSTRO_OK==mstro_csq_val_dispose(q));
+	   cheat_yield();
+	  )
-- 
GitLab