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

Version Path
trackler-2.1.0.27 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.26 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.25 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.24 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.23 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.22 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.21 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.20 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.19 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.18 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.17 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.16 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.15 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.14 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.13 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.12 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.11 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.10 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.9 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.8 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala