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.
1 parent 8c49a11 commit cabc799Copy full SHA for cabc799
Tests/ParseSwiftTests/ParsePointerTests.swift
@@ -60,6 +60,20 @@ class ParsePointerTests: XCTestCase {
60
XCTAssertEqual(pointer.objectId, initializedPointer.objectId)
61
}
62
63
+ func testPointerNoObjectId() throws {
64
+ let score = GameScore(score: 10)
65
+ XCTAssertThrowsError(try Pointer(score))
66
+ }
67
+
68
+ func testPointerObjectId() throws {
69
+ let score = Pointer<GameScore>(objectId: "yarr")
70
+ var score2 = GameScore(score: 10)
71
+ score2.objectId = "yarr"
72
+ let pointer = try score2.toPointer()
73
+ XCTAssertEqual(pointer.className, score.className)
74
+ XCTAssertEqual(pointer.objectId, score.objectId)
75
76
77
// swiftlint:disable:next function_body_length
78
func testFetch() throws {
79
var score = GameScore(score: 10)
0 commit comments