Created
October 15, 2014 01:38
-
-
Save labra/f6a4f72f9bd703f1c2c6 to your computer and use it in GitHub Desktop.
Ejercicio Scala Chequear numero Par - ScalaTest
This file contains hidden or 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
| package es.poo | |
| import org.scalatest._ | |
| import Matchers._ | |
| class ParSpec extends FunSpec with Matchers { | |
| describe("Par") { | |
| it("debe detectar que 4 es par") { | |
| Par.par(4) should be (true) | |
| } | |
| it ("debe detectar que 5 no es par") { | |
| Par.par(5) should be (false) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment