A bunch of algorithmic challenges in Swift, complete with tests.
This uses code from the blog 'TDD in Swift Playgrounds' as the basis to get the tests running (lots of boilerplate)
Some of the algorithmic challenges are modified from codingbat, if you're a Python or Java programmer, there's a wealth of stuff on there.