Sha256: a420850824496d00062b286339df59042122316683881099b7e78294a6689753
Contents?: true
Size: 1.1 KB
Versions: 169
Compression:
Stored size: 1.1 KB
Contents
import org.scalatest.{Matchers, FlatSpec} class TriangleTest extends FlatSpec with Matchers { it should "calc Equilateral" in { Triangle(2, 2, 2).triangleType should equal(TriangleType.Equilateral) } it should "calc Equilateral2" in { pending Triangle(10, 10, 10).triangleType should equal(TriangleType.Equilateral) } it should "calc Isosceles" in { pending Triangle(3, 4, 4).triangleType should equal(TriangleType.Isosceles) } it should "calc Isosceles2" in { pending Triangle(4, 3, 4).triangleType should equal(TriangleType.Isosceles) } it should "calc Scalene" in { pending Triangle(3, 4, 5).triangleType should equal(TriangleType.Scalene) } it should "calc Illogical" in { pending Triangle(1, 1, 50).triangleType should equal(TriangleType.Illogical) } it should "calc Illogical with zero length side" in { pending Triangle(0, 2, 1).triangleType should equal(TriangleType.Illogical) } it should "calc Illogical with negative length side" in { pending Triangle(1, 1, -1).triangleType should equal(TriangleType.Illogical) } }
Version data entries
169 entries across 169 versions & 1 rubygems