test: add real world example
this is what failed before the last fix; it was formatted to "0.-125"
This commit is contained in:
parent
c2b91fb774
commit
140ce061a3
1 changed files with 5 additions and 0 deletions
|
|
@ -208,6 +208,11 @@ mod tests {
|
||||||
assert_pretty_eval!("10901");
|
assert_pretty_eval!("10901");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn formatting_minus() {
|
||||||
|
assert_pretty_eval!("1/(2^3 * (-1)^(2 - 1))", "-0.125");
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn basic_get_significant_digits() {
|
fn basic_get_significant_digits() {
|
||||||
let many_zeros = eval("14.00643 + 1.00784 * 4 + 35.446 + 15.9994 * 4");
|
let many_zeros = eval("14.00643 + 1.00784 * 4 + 35.446 + 15.9994 * 4");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue