Skip to content

Commit

Permalink
test: failing test for #44
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Nov 4, 2024
1 parent 81af07a commit 50b3794
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
)
}
}

0 comments on commit 50b3794

Please sign in to comment.