File: 6.4.20-nef-R.sh

package info (click to toggle)
palp 2.21-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,308 kB
  • sloc: ansic: 17,456; sh: 1,452; makefile: 51
file content (20 lines) | stat: -rwxr-xr-x 434 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#
# Test the nef -R example in Section 6.4.20 of the PALP manual
#
. tests/lib/run-test.sh

: ${DIM:=6}

# Page 49
INPUT="6 3 2 1 0 0 5 0 0 1 1 3"
COMMAND="echo '${INPUT}' | ./nef-${DIM}d.x -f -R"
DESCRIPTION="nef-${DIM}d.x -R example on page 49"
EXPECTED=$(cat<<-EOF
3 7  Vertices of input polytope:
   -1    1    0    0    1    0   -1
    0    1   -1    1    4    4    1
   -1    0    0    0   -1   -1   -1
EOF
)
run_test