Skip to content

Instantly share code, notes, and snippets.

@tamizhgeek
Created November 15, 2014 13:43
Show Gist options
  • Save tamizhgeek/60b1a4ece4ecbb79a1e7 to your computer and use it in GitHub Desktop.
Save tamizhgeek/60b1a4ece4ecbb79a1e7 to your computer and use it in GitHub Desktop.
Tests cases for bootcamp week-1 non-list problems
import org.scalatest.FlatSpec
import assignments.MiscUtils._
class MiscUtilsTest extends FlatSpec {
it should "list all primes from start to end" in {
assert(listPrimes(1,10) == List(1,2,3,5,7))
}
it should "sum of all multiples of 3 and 5 before n" in {
assert(sumOfMultiples(10) == 23)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment