Skip to content

Commit 52d9152

Browse files
authored
Firestore: add a test for formatting an objective-c Class objects (#14328)
1 parent 01061ea commit 52d9152

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Firestore/core/test/unit/util/string_format_apple_test.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ - (NSString*)description {
5555
EXPECT_EQ("Hello description", StringFormat("Hello %s", desc_id));
5656
}
5757

58+
TEST(StringFormatTest, ObjectiveCClass) {
59+
FSTDescribable* desc = [[FSTDescribable alloc] init];
60+
EXPECT_EQ("Hello FSTDescribable", StringFormat("Hello %s", [desc class]));
61+
}
62+
5863
} // namespace util
5964
} // namespace firestore
6065
} // namespace firebase

0 commit comments

Comments
 (0)