mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 01:59:59 +01:00
Fix Integer approximation for 0.
Change-Id: Ib4bab6f4f776342bf6311d1e6f8b6d245d9a048a
This commit is contained in:
@@ -54,4 +54,7 @@ QUIZ_CASE(poincare_integer_approximate) {
|
||||
Context context;
|
||||
assert(Integer(1).approximate(context) == 1.0f);
|
||||
assert(Integer("12345678").approximate(context) == 12345678.0f);
|
||||
assert(Integer("0").approximate(context) == 0);
|
||||
assert(Integer("-0").approximate(context) == -0);
|
||||
assert(Integer(-1).approximate(context) == -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user