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.48 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.47 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.46 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.45 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.44 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.43 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.42 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.41 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.40 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.39 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.38 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.37 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.36 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.34 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.33 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.32 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.31 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.30 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.29 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.28 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala