test: Update EUR/USD exchange rate assumption in tests

- Updated the assertion for the EUR/USD exchange rate from >= 0.9 to >= 0.8.
- This reflects the current market exchange rate and prevents test failures.
This commit is contained in:
Mahmoud-Emad
2025-07-22 10:46:24 +03:00
parent 5592d13d66
commit c27862262f

View File

@@ -26,7 +26,7 @@ fn test_get_currencyamount() ! {
// testeuro
amount = testparams.get_currencyamount('euros')!
assert amount.currency.name == 'EUR'
assert amount.currency.usdval >= 0.9 // may need revision in future
assert amount.currency.usdval >= 0.8 // updated to reflect current EUR/USD rate
assert amount.val == 100.0
}
@@ -35,7 +35,7 @@ fn test_get_currencyamount_default() ! {
os.setenv('OFFLINE', 'true', true)
mut amount := testparams.get_currencyamount_default('na', '20EUR')!
assert amount.currency.name == 'EUR'
assert amount.currency.usdval >= 0.9 // may need revision in future
assert amount.currency.usdval >= 0.8 // updated to reflect current EUR/USD rate
assert amount.val == 20
}