mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-04 10:29:34 +00:00
Rename example files
This commit is contained in:
parent
1309c8b7fa
commit
3deba44282
29
modules/files/src/test/resources/letter-de.md
Normal file
29
modules/files/src/test/resources/letter-de.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
Max Mustermann
|
||||||
|
Lilienweg 21
|
||||||
|
12345 Nebendorf
|
||||||
|
E-Mail: max.muster@gmail.com
|
||||||
|
|
||||||
|
Max Mustermann, Lilienweg 21, 12345 Nebendorf
|
||||||
|
|
||||||
|
|
||||||
|
EasyCare AG<br>
|
||||||
|
Abteilung Buchhaltung<br>
|
||||||
|
Ackerweg 12<br>
|
||||||
|
12346 Ulmen<br>
|
||||||
|
|
||||||
|
|
||||||
|
Nebendorf, 3. September 2019
|
||||||
|
## Sehr geehrte Damen und Herren,
|
||||||
|
|
||||||
|
hiermit kündige ich meine Mitgliedschaft in der Kranken- und
|
||||||
|
Pflegeversicherung zum *nächstmöglichen* Termin.
|
||||||
|
|
||||||
|
Bitte senden Sie mir innerhalb der gesetzlichen Frist von **14 Tagen**
|
||||||
|
eine Kündigungsbestätigung zu.
|
||||||
|
|
||||||
|
|
||||||
|
Vielen Dank im Vorraus!
|
||||||
|
|
||||||
|
Mit freundlichen Grüßen
|
||||||
|
|
||||||
|
Max Mustermann
|
@ -2,7 +2,7 @@ package docspell.text
|
|||||||
|
|
||||||
import fs2.Stream
|
import fs2.Stream
|
||||||
import cats.effect.{Blocker, IO}
|
import cats.effect.{Blocker, IO}
|
||||||
import docspell.examplefiles._
|
import docspell.files._
|
||||||
|
|
||||||
import scala.concurrent.ExecutionContext
|
import scala.concurrent.ExecutionContext
|
||||||
|
|
||||||
@ -11,20 +11,20 @@ object TestFiles {
|
|||||||
implicit val CS = IO.contextShift(ExecutionContext.global)
|
implicit val CS = IO.contextShift(ExecutionContext.global)
|
||||||
|
|
||||||
val letterSourceDE: Stream[IO, Byte] =
|
val letterSourceDE: Stream[IO, Byte] =
|
||||||
ExampleFiles.letter_de_source_pdf
|
ExampleFiles.letter_de_pdf
|
||||||
.readURL[IO](16 * 1024, blocker)
|
.readURL[IO](16 * 1024, blocker)
|
||||||
|
|
||||||
val letterSourceEN: Stream[IO, Byte] =
|
val letterSourceEN: Stream[IO, Byte] =
|
||||||
ExampleFiles.letter_en_source_pdf
|
ExampleFiles.letter_en_pdf
|
||||||
.readURL[IO](16 * 1024, blocker)
|
.readURL[IO](16 * 1024, blocker)
|
||||||
|
|
||||||
lazy val letterDEText =
|
lazy val letterDEText =
|
||||||
ExampleFiles.letter_de_source_txt
|
ExampleFiles.letter_de_txt
|
||||||
.readText[IO](16 * 1024, blocker)
|
.readText[IO](16 * 1024, blocker)
|
||||||
.unsafeRunSync
|
.unsafeRunSync
|
||||||
|
|
||||||
lazy val letterENText =
|
lazy val letterENText =
|
||||||
ExampleFiles.letter_en_source_txt
|
ExampleFiles.letter_en_txt
|
||||||
.readText[IO](16 * 1024, blocker)
|
.readText[IO](16 * 1024, blocker)
|
||||||
.unsafeRunSync
|
.unsafeRunSync
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ object TextExtractionSuite extends SimpleTestSuite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test("find mimetypes") {
|
test("find mimetypes") {
|
||||||
docspell.examplefiles.ExampleFiles.
|
ExampleFiles.
|
||||||
all.foreach { url =>
|
all.foreach { url =>
|
||||||
TikaMimetype.detect(url.readURL[IO](8192, blocker), MimeTypeHint.none).
|
TikaMimetype.detect(url.readURL[IO](8192, blocker), MimeTypeHint.none).
|
||||||
map(mt => println(url.asString + ": " + mt.asString)).
|
map(mt => println(url.asString + ": " + mt.asString)).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user