FIX: Correct order when stringify -(A1^1.22) and (-A1)^1.22 (#484)

Fixes #483
This commit is contained in:
Nicolás Hatcher Andrés
2025-10-27 19:09:31 +01:00
committed by GitHub
parent c88bcb94ae
commit 1edfb2df1c
5 changed files with 44 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
#![allow(clippy::unwrap_used)]
use crate::test::util::new_empty_model;
#[test]
fn issue_155() {
let mut model = new_empty_model();
model._set("A1", "123");
model._set("D2", "=-(A1^1.22)");
model.evaluate();
assert_eq!(model._get_formula("D2"), "=-(A1^1.22)".to_string());
}