I am trying to write unit test for my method doing some operations on NSDecimalNumber. For simplicity I prepared this simple unit test snippet:
- (void) testTmp {
NSDecimalNumber* val = [NSDecimalNumber decimalNumberWithString:@"0"];
XCTAssertEqual([val stringValue], @"0");
}
Unfortunately it fails and I can't get it to work. What am I doing wrong? How do I test if NSDecimalNumber's value equals to other value?