File: fibonacci

package info (click to toggle)
yap 6.2.2-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 33,716 kB
  • ctags: 28,168
  • sloc: ansic: 227,323; perl: 100,869; sh: 6,721; java: 5,165; makefile: 3,502; cpp: 1,401; python: 1,163; tcl: 352; xml: 77; awk: 9
file content (11 lines) | stat: -rwxr-xr-x 247 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -e

indir=debian/tests/
outdir=${TMPDIR-/tmp}
outfile=${outdir}/fibonacci.out

yap -l ${indir}/fibonacci.pl -z 'fib(200,X)' < /dev/null \
    > ${outfile} 2> /dev/null
grep -q "453973694165307953197296969697410619233826" ${outfile}