braintree / braintree_ios

Braintree SDK for iOS
https://developer.paypal.com/braintree/docs/start/hello-client/ios/v5
MIT License
557 stars 291 forks source link

Fix Failing `UnitTest`s #1244

Closed jaxdesmarais closed 4 months ago

jaxdesmarais commented 4 months ago

Summary of changes

The Why

I found this super interesting so adding it here if other folks are also interested:

Alternatives

There are some alternatives to the check I added here that we can explore, but the approach I took was the closest to our v5 implementation here which used asString to see if it could be cast to a NSString (UTF-16) and if not returned null. Some alternatives:

Checklist

Authors