mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Convert unit tests to munit
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
package docspell.common
|
||||
|
||||
import minitest._
|
||||
import munit._
|
||||
|
||||
object FileNameTest extends SimpleTestSuite {
|
||||
class FileNameTest extends FunSuite {
|
||||
|
||||
test("make filename") {
|
||||
val data = List(
|
||||
|
@ -1,9 +1,9 @@
|
||||
package docspell.common
|
||||
|
||||
import minitest._
|
||||
import munit._
|
||||
import Glob._
|
||||
|
||||
object GlobTest extends SimpleTestSuite {
|
||||
class GlobTest extends FunSuite {
|
||||
|
||||
test("literals") {
|
||||
assert(Glob.pattern(Pattern(Segment(Token.Literal("hello")))).matches(true)("hello"))
|
||||
|
@ -1,10 +1,10 @@
|
||||
package docspell.common
|
||||
|
||||
import minitest._
|
||||
import munit._
|
||||
import cats.data.NonEmptyList
|
||||
import docspell.common.MetaProposal.Candidate
|
||||
|
||||
object MetaProposalListTest extends SimpleTestSuite {
|
||||
class MetaProposalListTest extends FunSuite {
|
||||
|
||||
test("flatten retains order of candidates") {
|
||||
val cand1 = Candidate(IdRef(Ident.unsafe("123"), "name"), Set.empty)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package docspell.common
|
||||
|
||||
import minitest._
|
||||
import munit._
|
||||
|
||||
object NerLabelSpanTest extends SimpleTestSuite {
|
||||
class NerLabelSpanTest extends FunSuite {
|
||||
|
||||
test("build") {
|
||||
val labels = List(
|
||||
|
Reference in New Issue
Block a user