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 CursoSpec extends FunSpec with Matchers { | |
describe("Curso") { | |
it ("debe crear un curso y obtener el nombre") { |
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 org.scalatest.Matchers._ | |
import org.scalatest.prop.PropertyChecks | |
class PrimosSpec extends FunSpec | |
with Matchers | |
with PropertyChecks { |
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 FigurasSpec extends FunSpec with Matchers { | |
describe("Figuras") { | |
it("debe crear una figura y calcular su posicion") { | |
val f = new Figura(2,3) |
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 FactSpec extends FunSpec with Matchers { | |
describe("Fact") { | |
val valores = Map( |
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) |
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
<?php | |
require_once 'curso.php'; | |
class CursoTest extends PHPUnit_Framework_TestCase | |
{ | |
function test_create_class() { | |
$c = new Curso('Algebra'); | |
$this->assertTrue(is_a($c, 'Curso')); |
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
<?php | |
require_once 'corrector.php'; | |
class CorrectorTest extends PHPUnit_Framework_TestCase { | |
private $examen, $evaluacion, $resultado, $corrector ; | |
function __construct() { | |
$this->examen = json_decode('[ |
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
<?php | |
require_once 'figuras.php'; | |
class FigurasTest extends PHPUnit_Framework_TestCase | |
{ | |
function test_create_class() { | |
$f = new Rect(1,2,3,4); | |
$this->assertTrue(is_a($f, 'Rect')); |
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
<?php | |
require_once 'primos.php'; | |
class PrimosTest extends PHPUnit_Framework_TestCase | |
{ | |
function test_create_class() { | |
$a = new Primos(); | |
$this->assertTrue(is_a($a, 'Primos')); |
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
<?php | |
require_once 'parfact.php'; | |
class ParFactTest extends PHPUnit_Framework_TestCase | |
{ | |
function test_create_class() { | |
$a = new ParFact(); | |
$this->assertTrue(is_a($a, 'ParFact')); |