@Test(dataProvider = "expressions")
public void rewrite(final String expr, final double value) {

	final TreeNode<Op<Double>> tree = MathExpr.parse(expr).toTree();
	ConstRewriter.ofType(Double.class).rewrite(tree);
	Assert.assertEquals(tree.value(), Const.of(value));
}