Skip to content

Commit

Permalink
Inline StackYamlTest.assertRight
Browse files Browse the repository at this point in the history
  • Loading branch information
carymrobbins committed Jul 18, 2022
1 parent 96e10e6 commit ad1f507
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/com/haskforce/importWizard/stack/StackYamlTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.haskforce.importWizard.stack

import java.util

import scalaz.\/
import scalaz.syntax.either._

import junit.framework.TestCase
Expand Down Expand Up @@ -44,7 +43,7 @@ class StackYamlTest extends TestCase {

val expected = StackYaml(packages("."))

assertRight(expected, actual)
TestCase.assertEquals(expected.right, actual)
}

def testLocationPackages(): Unit = {
Expand All @@ -70,14 +69,10 @@ class StackYamlTest extends TestCase {

val expected = StackYaml(packages("."))

assertRight(expected, actual)
TestCase.assertEquals(expected.right, actual)
}

private def packages(ps: String*): util.List[StackYaml.Package] = {
util.Arrays.asList(ps.map(StackYaml.Package): _*)
}

private def assertRight[A](expected: A, actual: _ \/ A) = {
TestCase.assertEquals(expected.right, actual)
}
}

0 comments on commit ad1f507

Please sign in to comment.