From 7d833beb9a042f19cec84743851acc109d0d724f Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Wed, 20 Jan 2016 16:57:16 +0200 Subject: [PATCH] one more cond test --- utils/cond_loader_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/cond_loader_test.go b/utils/cond_loader_test.go index 996d12d27..34b01cbe3 100644 --- a/utils/cond_loader_test.go +++ b/utils/cond_loader_test.go @@ -89,6 +89,13 @@ func TestCondKeyValue(t *testing.T) { if check, err := cl.Check(o); !check || err != nil { t.Errorf("Error checking struct: %v %v (%v)", check, err, ToIJSON(cl.rootElement)) } + err = cl.Parse(`{"Other":true, "Field":{"*gt":7}}`) + if err != nil { + t.Errorf("Error loading structure: %+v (%v)", ToIJSON(cl.rootElement), err) + } + if check, err := cl.Check(o); check || err != nil { + t.Errorf("Error checking struct: %v %v (%v)", check, err, ToIJSON(cl.rootElement)) + } err = cl.Parse(``) if err != nil { t.Errorf("Error loading structure: %+v (%v)", ToIJSON(cl.rootElement), err)