From 50b3794f09a692496c3a0d6adfe407b0089298a6 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Mon, 4 Nov 2024 05:45:18 -0700 Subject: [PATCH] test: failing test for #44 --- src/expr.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/expr.rs b/src/expr.rs index b490715..f50d69e 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -312,4 +312,16 @@ mod tests { point.to_text().unwrap() ); } + + #[test] + fn issues_44() { + // https://github.com/developmentseed/cql2-rs/issues/44 + let expr: Expr = include_str!("../fixtures/text/example17.txt") + .parse() + .unwrap(); + assert_eq!( + expr.to_text().unwrap(), + "((\"floors\" > 5) AND (\"material\" = 'brick')) OR (\"swimming_pool\" = true)" + ) + } }