Skip to content

Commit 3b77714

Browse files
committed
Add failing test
1 parent 7fb7095 commit 3b77714

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/expr.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ impl Expr {
257257
/// let toexpr: Expr = Expr::from_str("20").unwrap();
258258
/// assert_eq!(reduced, toexpr);
259259
///
260+
/// let fromexpr: Expr = Expr::from_str("cityName IN ('Toronto','Frankfurt','Tokyo','New York')").unwrap();
261+
/// let reduced = fromexpr.reduce(None).unwrap();
262+
/// let toexpr: Expr = Expr::from_str("cityName IN ('Toronto','Frankfurt','Tokyo','New York')").unwrap();
263+
/// assert_eq!(reduced, toexpr);
264+
///
260265
/// let fromexpr: Expr = Expr::from_str("(bork=1) and (bork=1) and (bork=1 and true)").unwrap();
261266
/// let reduced = fromexpr.reduce(Some(&item)).unwrap();
262267
/// let toexpr: Expr = Expr::from_str("bork=1").unwrap();

0 commit comments

Comments
 (0)