- class FactorialTests
- extends AnyFlatSpec with should.Matchers:
- "Factorial" should "compute 0! correctly" in {
- factorial(0) should be (1)
- }
- it should "compute 1! correctly" in {
- factorial(1) should be (1)
- }
- it should "compute 3! correctly" in {
- factorial(3) should be (6)
- }