sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

0045-dc.sh (301B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 tmp=$$.tmp
      6 
      7 trap 'rm -f $tmp' EXIT
      8 trap 'exit $?' HUP INT TERM
      9 
     10 echo 0 > $tmp
     11 
     12 ../dc -i <<'EOF' | diff -u - $tmp
     13 [ 0 Lxs. 2Q]s<128>
     14 [ .7853981633974483096156608458198757210492923498437764 1/ Lxs. 3Q]s<130>
     15 [K 52><130> ]s<129>
     16 [Sxlx 0=<128> lx 1=<129> 0 Lxs. 1Q]s<1>
     17 
     18  1l<1>xps.
     19 EOF