aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/third_party/Immutable/Tests/FSTImmutableSortedSet+Testing.m
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/third_party/Immutable/Tests/FSTImmutableSortedSet+Testing.m')
-rw-r--r--Firestore/third_party/Immutable/Tests/FSTImmutableSortedSet+Testing.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/Firestore/third_party/Immutable/Tests/FSTImmutableSortedSet+Testing.m b/Firestore/third_party/Immutable/Tests/FSTImmutableSortedSet+Testing.m
new file mode 100644
index 0000000..d4d81e0
--- /dev/null
+++ b/Firestore/third_party/Immutable/Tests/FSTImmutableSortedSet+Testing.m
@@ -0,0 +1,17 @@
+#import "FSTImmutableSortedSet+Testing.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@implementation FSTImmutableSortedSet (Testing)
+
+- (NSArray<id> *)allObjects {
+ NSMutableArray<id> *result = [NSMutableArray array];
+ [self enumerateObjectsUsingBlock:^(id object, BOOL *stop) {
+ [result addObject:object];
+ }];
+ return result;
+}
+
+@end
+
+NS_ASSUME_NONNULL_END