--- /dev/null
+#!/bin/sh
+
+cd "${0%/*}" || exit 1
+
+test_count=0
+
+COLUMNS=40
+diffcmd='diff --unchanged-line-format= --old-line-format=<%L --new-line-format=>%L'
+
+for candidate in ${@:-t*.in}
+do
+ test_count=$((test_count+1))
+ name="${candidate%.out}"
+ barcat <"$name.in" | $diffcmd "$name.out" - || printf 'not '
+ echo "ok $test_count - $name"
+done
+
+echo "1..$test_count"
--- /dev/null
+0.0998334 ---
+ 0.198669 ------
+ 0.29552 ---------
+ 0.389418 ------------
+ 0.479426 --------------
+ 0.564642 ---------------<-
+ 0.644218 ---------------<--=
+ 0.717356 ---------------<--=-+-
+ 0.783327 ---------------<--=-+---
+ 0.841471 ---------------<--=-+----
+ 0.891207 ---------------<--=-+---->-
+ 0.932039 ---------------<--=-+---->--
+ 0.963558 ---------------<--=-+---->---
+ 0.98545 ---------------<--=-+---->----
+ 0.997495 ---------------<--=-+---->----
+ 0.999574 ---------------<--=-+---->----
+ 0.991665 ---------------<--=-+---->----
+ 0.973848 ---------------<--=-+---->---
+ 0.9463 ---------------<--=-+---->--
+ 0.909297 ---------------<--=-+---->-
+ 0.863209 ---------------<--=-+---->
+ 0.808496 ---------------<--=-+---
+ 0.745705 ---------------<--=-+-
+ 0.675463 ---------------<--=-
+ 0.598472 ---------------<--
+ 0.515501 ---------------
+ 0.42738 -------------
+ 0.334988 ----------
+ 0.239249 -------
+ 0.14112 ----