mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[Poincare] Add more tests for the Integer class
This commit is contained in:
@@ -7,5 +7,7 @@ QUIZ_CASE(poincare_integer) {
|
||||
}
|
||||
|
||||
QUIZ_CASE(poincare_integer_add) {
|
||||
assert(Integer(123)+Integer(456) == Integer(579));
|
||||
assert(Integer((uint32_t)0) + Integer((uint32_t)0) == Integer((uint32_t)0));
|
||||
assert(Integer(123) + Integer(456) == Integer(579));
|
||||
assert(Integer(123) + Integer(123456789) == Integer(123456912));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user