From 907bce2688b40c37a330ed92d05b46fef0395d94 Mon Sep 17 00:00:00 2001 From: vthriller Date: Fri, 12 Jan 2018 13:27:19 +0300 Subject: [PATCH] (a bit more compact test expr) --- src/expr.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/expr.rs b/src/expr.rs index ba2fe53..dee3ca1 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -167,20 +167,12 @@ mod tests { expression(&b"foo > bar != 0 and 15.5 < xyzzy"[..]), Done(&b""[..], operator( operator( - operator( - vector("foo"), - Gt, - vector("bar") - ), + operator(vector("foo"), Gt, vector("bar")), Ne, Scalar(0.) ), And, - operator( - Scalar(15.5), - Lt, - vector("xyzzy") - ) + operator(Scalar(15.5), Lt, vector("xyzzy")), )) );