max, to random
@max@torontodiy.xyz avatar
simonmic, to random
@simonmic@fosstodon.org avatar

I’m pleased to announce shelltestrunner 1.10 !
This is a cross-platform, GPLv3+ command line tester.
It tests one or more commands, with optional input, and their expected output, stderr, and exit status. It can run tests in parallel, selectively, with a timeout, in color, etc. 1.10 brings --print mode (useful for upgrading old format 1 tests to to modern format 3), and precise line number reporting.

https://github.com/simonmichael/shelltestrunner/releases/tag/1.10

scy, to random
@scy@chaos.social avatar

Okay, so. I have a and a file. And I’d like to compare them. And since I’m a programmer, I don’t want to compare them visually, but with a . But how?

Like this.

alias pdfcat='gs -q -sDEVICE=txtwrite -o-'
alias doccat='pandoc -t plain'

pdfcat a.pdf > a.txt
doccat b.docx > b.txt

git diff --no-index --word-diff a.txt b.txt

And since we’re using --word-diff, it doesn’t matter that the two files use wildly different line wrapping.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • Ask_kbincafe
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines