-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #464 from valencik/munit
Migrate tests to Munit
- Loading branch information
Showing
14 changed files
with
542 additions
and
582 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
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
5 changes: 0 additions & 5 deletions
5
modules/core/src/test/scala/io/chrisdavenport/cormorant/CormorantSpec.scala
This file was deleted.
Oops, something went wrong.
35 changes: 18 additions & 17 deletions
35
modules/core/src/test/scala/io/chrisdavenport/cormorant/ErrorSpec.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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
package io.chrisdavenport.cormorant | ||
|
||
class ErrorSpec extends org.specs2.mutable.Specification{ | ||
"Error.DecodeFailure" should { | ||
"toString should work" in { | ||
Error.DecodeFailure.single("reason").toString() | ||
.must_===("DecodeFailure(NonEmptyList(reason))") | ||
} | ||
class ErrorSpec extends munit.FunSuite { | ||
test("Error.DecodeFailure toString should work") { | ||
assertEquals( | ||
Error.DecodeFailure.single("reason").toString(), | ||
"DecodeFailure(NonEmptyList(reason))" | ||
) | ||
} | ||
"Error.ParseFailure" should { | ||
"toString should work" in { | ||
Error.ParseFailure.invalidInput("invalid").toString() | ||
.must_===("ParseFailure(Invalid Input: Received invalid)") | ||
} | ||
|
||
test("Error.ParseFailure toString should work") { | ||
assertEquals( | ||
Error.ParseFailure.invalidInput("invalid").toString(), | ||
"ParseFailure(Invalid Input: Received invalid)" | ||
) | ||
} | ||
|
||
"Error.PrintFailure" should { | ||
"toString should work" in { | ||
Error.PrintFailure("reason").toString() | ||
.must_===("PrintFailure(reason)") | ||
} | ||
test("Error.PrintFailure toString should work") { | ||
assertEquals( | ||
Error.PrintFailure("reason").toString(), | ||
"PrintFailure(reason)" | ||
) | ||
} | ||
} | ||
} |
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
Oops, something went wrong.