14
14
* limitations under the License.
15
15
*/
16
16
17
- #import < FirebaseFirestore/FIRBsonBinaryData.h>
18
- #import < FirebaseFirestore/FIRBsonObjectId.h>
19
- #import < FirebaseFirestore/FIRBsonTimestamp.h>
20
17
#import < FirebaseFirestore/FIRFieldValue.h>
21
- #import < FirebaseFirestore/FIRInt32Value.h>
22
- #import < FirebaseFirestore/FIRRegexValue.h>
23
18
#import < FirebaseFirestore/FIRVectorValue.h>
24
- #import " Firestore/Example/Tests/Util/FSTHelpers.h"
25
19
26
20
#import < XCTest/XCTest.h>
27
21
@@ -48,38 +42,6 @@ - (void)testEquals {
48
42
XCTAssertNotEqual ([deleted hash ], [serverTimestamp hash ]);
49
43
}
50
44
51
- - (void )testCanCreateRegexValue {
52
- FIRRegexValue *regex = [FIRFieldValue regexWithPattern: @" ^foo" options: @" x" ];
53
- XCTAssertEqual (regex.pattern , @" ^foo" );
54
- XCTAssertEqual (regex.options , @" x" );
55
- }
56
-
57
- - (void )testCanCreateInt32Value {
58
- FIRInt32Value *int1 = [FIRFieldValue int32WithValue: 1234 ];
59
- XCTAssertEqual (int1.value , 1234 );
60
-
61
- FIRInt32Value *int2 = [FIRFieldValue int32WithValue: -1234 ];
62
- XCTAssertEqual (int2.value , -1234 );
63
- }
64
-
65
- - (void )testCanCreateBsonObjectId {
66
- FIRBsonObjectId *objectId = [FIRFieldValue bsonObjectIdWithValue: @" foo" ];
67
- XCTAssertEqual (objectId.value , @" foo" );
68
- }
69
-
70
- - (void )testCanCreateBsonTimestamp {
71
- FIRBsonTimestamp *timestamp = [FIRFieldValue bsonTimestampWithSeconds: 123 increment: 456 ];
72
- XCTAssertEqual (timestamp.seconds , 123U );
73
- XCTAssertEqual (timestamp.increment , 456U );
74
- }
75
-
76
- - (void )testCanCreateBsonBinaryData {
77
- FIRBsonBinaryData *binData = [FIRFieldValue bsonBinaryDataWithSubtype: 128
78
- data: FSTTestData (1 , 2 , 3 , -1 )];
79
- XCTAssertEqual (binData.subtype , 128 );
80
- XCTAssertTrue ([binData.data isEqualToData: FSTTestData (1 , 2 , 3 , -1 )]);
81
- }
82
-
83
45
@end
84
46
85
- NS_ASSUME_NONNULL_END
47
+ NS_ASSUME_NONNULL_END
0 commit comments