more fixes, still not done yet

This commit is contained in:
filipriec
2025-07-07 13:32:06 +02:00
parent 4d5d22d0c2
commit 11487f0833
4 changed files with 61 additions and 64 deletions

View File

@@ -290,7 +290,7 @@ fn test_financial_calculations() {
let result = steel_decimal_instance.parse_and_execute("(decimal-compound \"1000\" \"0.05\" \"2\")").unwrap();
assert_eq!(result.len(), 1);
if let SteelVal::StringV(s) = &result[0] {
assert_eq!(s.to_string(), "1102.50"); // 1000 * (1.05)^2 = 1102.50
assert_eq!(s.to_string(), "1102.5000"); // 1000 * (1.05)^2 = 1102.5000
}
}