Skip to content

Commit

Permalink
Fix stale tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jisantuc committed Apr 10, 2019
1 parent f6586de commit e6d7593
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jvm/src/test/scala/eval/ResultSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ResultSpec extends FunSpec with Matchers {

it("Evaluate to desired output (tile)") {
val anImage = ImageResult(LazyMultibandRaster(List(
LazyRaster(IntArrayTile(1 to 4 toArray, 2, 2), Extent(0,0,0,0), WebMercator))
LazyRaster(IntArrayTile(1 to 4 toArray, 2, 2), Extent(0,0,1,1), WebMercator))
))
val anInt = IntResult(1)

Expand All @@ -37,7 +37,7 @@ class ResultSpec extends FunSpec with Matchers {
anInt.as[MultibandTile] should matchPattern { case Invalid(_) => }

val complexImage = ImageResult(LazyMultibandRaster(List(
LazyRaster.MapInt(List(LazyRaster(IntArrayTile(1 to 4 toArray, 2, 2), Extent(0,0,0,0), WebMercator)), { i: Int => i + 4 })
LazyRaster.MapInt(List(LazyRaster(IntArrayTile(1 to 4 toArray, 2, 2), Extent(0,0,1,1), WebMercator)), { i: Int => i + 4 })
)))
complexImage.as[MultibandTile] should matchPattern { case Valid(_) => }
}
Expand Down
2 changes: 1 addition & 1 deletion jvm/src/test/scala/eval/ScopedEvaluationSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import scala.reflect._
class ScopedEvaluationSpec extends FunSpec with Matchers {

def tileToLit(tile: Tile): RasterLit[ProjectedRaster[MultibandTile]] =
RasterLit(ProjectedRaster(MultibandTile(tile), Extent(0, 0, 0, 0), WebMercator))
RasterLit(ProjectedRaster(MultibandTile(tile), Extent(0, 0, 1, 1), WebMercator))

implicit class TypeRefinement(self: Interpreted[Result]) {
def as[T](implicit ct: ClassTag[T]): Interpreted[T] = self match {
Expand Down

0 comments on commit e6d7593

Please sign in to comment.