Closed yashsoni501 closed 4 years ago
Thanks for your contribution! @yashsoni501 can you please add tests for this behaviour.
@ayaankhan98 the test for this already exists under bigINT/tests/operators/ostream_test.cpp I manually checked for both the versions over this test. The test fails for the code before commit and passes after.
@yashsoni501 i know tests are there for ostream operator, what i mean is that this wrong behaviour is triggered due to error is ctor so there must be some issue with the ctor tests that is not considered while writing the tests for ctors. therefore the tests for ctor are weak kindly update those tests to cover all possible aspects.
Description of Change
The this->number was re-initialized in case of negative numbers. resolving #45
Checklist