Test cases / doc

deft doc to-text

Extract plain text

1 run on real files, 6 tests on generated files, not shown. 0 failed.

Real-file tasks

Real files and a plain-language job, from the agent benchmark. These are the reference answers, not an agent run.

Read a Word documentPassed

Extract the text of letter.docx into letter.txt.

deft doc to-text letter.docx -o letter.txt

Input

letter.docx 11.3 KB
Rendered by macOS Quick Look, first page

Rendered by macOS Quick Look, first page

Text inside
I am a test document
This is page 1
I am Calibri (Body) in font size 11

This is page two
It’s Arial Black in 16 point
It’s also in blue

Output

I am a test document

This is page 1

I am Calibri (Body) in font size 11


This is page two

It’s Arial Black in 16 point

It’s also in blue
Automatic checks (1)
  • text: file = "letter.txt", contains = ["This is page two"]