Skip to content

Instantly share code, notes, and snippets.

@labra
Created October 15, 2014 01:38
Show Gist options
  • Select an option

  • Save labra/f6a4f72f9bd703f1c2c6 to your computer and use it in GitHub Desktop.

Select an option

Save labra/f6a4f72f9bd703f1c2c6 to your computer and use it in GitHub Desktop.
Ejercicio Scala Chequear numero Par - ScalaTest
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