Skip to content

Instantly share code, notes, and snippets.

@Mreyna3
Last active June 7, 2019 11:28
Show Gist options
  • Save Mreyna3/1d6ddf1a6a80e21fb615e43468201be2 to your computer and use it in GitHub Desktop.
Save Mreyna3/1d6ddf1a6a80e21fb615e43468201be2 to your computer and use it in GitHub Desktop.
Test Data
var transactionsDataSource1 = [0.32,0.10,0.01,0.02]
var processor = PaymentProcessor()
for i in 0..<transactionsDataSource1.count {
processor.enqueue(transaction: transactionsDataSource1[i])
}
let sum = processor.batchSum
print(sum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment