We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
attributeValueClassName
1 parent a971db3 commit 86720f5Copy full SHA for 86720f5
Tests/ManagedModelTests/CoreDataAssumptionsTests.swift
@@ -67,4 +67,20 @@ final class CoreDataAssumptionsTests: XCTestCase {
67
XCTAssertEqual(relationship.isOrdered, copiedRelationship.isOrdered)
68
XCTAssertEqual(relationship.maxCount, copiedRelationship.maxCount)
69
}
70
+
71
72
+ func testAttributeValueClassIsNotEmpty() throws {
73
+ do {
74
+ let attribute = NSAttributeDescription()
75
+ attribute.name = "Hello"
76
+ attribute.attributeType = .stringAttributeType
77
+ XCTAssertEqual(attribute.attributeValueClassName, "NSString")
78
+ }
79
80
81
82
+ attribute.attributeType = .integer16AttributeType
83
+ XCTAssertEqual(attribute.attributeValueClassName, "NSNumber")
84
85
86
0 commit comments