cloudant / swift-cloudant

A Swift Lang client for Cloudant and CouchDB
Apache License 2.0
42 stars 20 forks source link

Remove implicit bridging in tests #160

Closed ianpartridge closed 7 years ago

ianpartridge commented 7 years ago

Although Darwin platforms have automatic bridging between Foundation types such as NSDictionary and Swift types like Dictionary, this is unfortunately not supported on Linux.

Work around this by explicitly bridging instead. Although this does create additional instances of Foundation classes on Darwin, this is OK as it's only in the tests so won't affect performance.

ianpartridge commented 7 years ago

Are you OK with this @ricellis ?