-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made the switch to integration tests, some tests are broken
- Loading branch information
1 parent
7aca782
commit bc4cc7e
Showing
8 changed files
with
61 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
figlet4s-core/src/test/scala/com/colofabrix/scala/figlet4s/options/OptionsBuilderSpecs.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
figlet4s-effects/src/it/scala/com/colofabrix/scala/figlet4s/catsio/CatsIOFiglet4sSpecs.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.colofabrix.scala.figlet4s.catsio | ||
|
||
import cats.effect._ | ||
import com.colofabrix.scala.figlet4s.figfont._ | ||
import com.colofabrix.scala.figlet4s.StandardTestData._ | ||
import com.colofabrix.scala.figlet4s.testutils.Figlet4sMatchers | ||
import org.scalatest.flatspec._ | ||
import org.scalatest.matchers.should._ | ||
|
||
class CatsIOFiglet4sSpecs extends AnyFlatSpec with Matchers with Figlet4sMatchers { | ||
|
||
private def run[A](a: IO[A]): A = a.unsafeRunSync() | ||
|
||
"Rendering APIs" should "render a default text using the \"standard\" font" in { | ||
val test = | ||
for { | ||
options <- standardBuilder.options | ||
} yield { | ||
val computed = Figlet4s.renderString(standardInput, options) | ||
val expected = FIGure(options.font, standardInput, Vector(standardLines.toSubcolumns)) | ||
computed should lookLike(expected) | ||
} | ||
|
||
run(test) | ||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
figlet4s-effects/src/it/scala/com/colofabrix/scala/figlet4s/either/EitherFiglet4sSpecs.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.colofabrix.scala.figlet4s.either | ||
|
||
import cats.scalatest._ | ||
import com.colofabrix.scala.figlet4s.figfont._ | ||
import com.colofabrix.scala.figlet4s.StandardTestData._ | ||
import com.colofabrix.scala.figlet4s.testutils.Figlet4sMatchers | ||
import org.scalatest.flatspec._ | ||
import org.scalatest.matchers.should._ | ||
|
||
class EitherFiglet4sSpecs extends AnyFlatSpec with Matchers with Figlet4sMatchers with EitherMatchers { | ||
|
||
"Rendering APIs" should "render a default text using the \"standard\" font" in { | ||
val computed = | ||
for { | ||
options <- standardBuilder.options | ||
} yield { | ||
val computed = Figlet4s.renderString(standardInput, options) | ||
val expected = FIGure(options.font, standardInput, Vector(standardLines.toSubcolumns)) | ||
computed should lookLike(expected) | ||
} | ||
|
||
computed should be(right) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 3 additions & 26 deletions
29
...t4s-effects/src/test/scala/com/colofabrix/scala/figlet4s/either/EitherFiglet4sSpecs.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
figlet4s-java/src/test/scala/com/colofabrix/java/figlet4s/JavaFiglet4sSpecs.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters