Skip to content

Commit

Permalink
Firestore: add a test for formatting an objective-c Class objects (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
dconeybe authored Jan 10, 2025
1 parent 01061ea commit 52d9152
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Firestore/core/test/unit/util/string_format_apple_test.mm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ - (NSString*)description {
EXPECT_EQ("Hello description", StringFormat("Hello %s", desc_id));
}

TEST(StringFormatTest, ObjectiveCClass) {
FSTDescribable* desc = [[FSTDescribable alloc] init];
EXPECT_EQ("Hello FSTDescribable", StringFormat("Hello %s", [desc class]));
}

} // namespace util
} // namespace firestore
} // namespace firebase

0 comments on commit 52d9152

Please sign in to comment.