Created
November 15, 2014 13:43
-
-
Save tamizhgeek/60b1a4ece4ecbb79a1e7 to your computer and use it in GitHub Desktop.
Tests cases for bootcamp week-1 non-list problems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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