You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In working on #210, I wanted to serialize a static collection of expressions to simplify for consistent benchmarking. Unfortunately, Expression::from_str(&expression.to_string()) doesn't reliably work.
For instance, this test:
proptest!{
#[test]fn round_trip(e in arb_expr()){let s = e.to_string();let p = Expression::from_str(&s);
dbg!((&e,&s,&p));
prop_assert!(p.is_ok());
prop_assert_eq!(p.unwrap().into_simplified(), e.into_simplified());}}
In working on #210, I wanted to serialize a static collection of expressions to simplify for consistent benchmarking. Unfortunately,
Expression::from_str(&expression.to_string())
doesn't reliably work.For instance, this test:
finds the following failure:
Note that this test relies on changes made to
arb_expr()
and friends in #210.The text was updated successfully, but these errors were encountered: