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.7 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.6 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.5 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.4 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.3 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.2 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.1 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.1.0.0 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.55 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.54 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.53 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.52 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.51 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.50 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.49 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.48 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.47 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.46 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.45 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala
trackler-2.0.8.44 tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala