Skip to content

Commit

Permalink
testing for precision with a large Int64 number
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur committed Jun 21, 2019
1 parent 42ddbae commit 6dea2ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ - (void)testImportInt32AttributeToEntity
- (void)testImportInt64AttributeToEntity
{
[testEntity.managedObjectContext performBlockAndWait:^{
XCTAssertEqualObjects(self->testEntity.int64TestAttribute, @42, @"int64TestAttribute did not contain expected value, instead found: %@", self->testEntity.int64TestAttribute);
XCTAssertEqualObjects(self->testEntity.int64TestAttribute, @10158365420975381, @"int64TestAttribute did not contain expected value, instead found: %@", self->testEntity.int64TestAttribute);
}];
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/SingleEntityWithNoRelationships.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"int64TestAttribute": 42,
"int64TestAttribute": 10158365420975381,
"stringTestAttribute": "This is a test value",
"int32TestAttribute": 32,
"int16TestAttribute": 256,
Expand Down
4 changes: 2 additions & 2 deletions Tests/Fixtures/SingleEntityWithNoRelationships.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>numberAsStringTestAttribute</key>
<integer>10248909829</integer>
<key>int64TestAttribute</key>
<integer>42</integer>
<integer>10158365420975381</integer>
<key>stringTestAttribute</key>
<string>This is a test value</string>
<key>int32TestAttribute</key>
Expand All @@ -30,7 +30,7 @@
<string>8/5/2011 1-56-04 AM</string>
<key>nullTestAttribte</key>
<string></string>
<key>booleanAsStringTestAttribute</key>
<key>booleanAsStringTestAttribute</key>
<string>true</string>
</dict>
</plist>

0 comments on commit 6dea2ee

Please sign in to comment.