Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TestSpec extends FlatSpec { // vlastni test
- val t = new Test // moje testovana trida
- t.factorial(0) should equal (1)
- t.factorial(1) should equal (1)
- t.factorial(5) should equal (120)
- t.getPrimesLessThan(10) should contain only (2, 3, 5, 7)
- t.getPrimesLessThan(20) should contain only (2, 3, 5, 7, 11, 13, 17, 19)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement