File: smoke-test

package info (click to toggle)
datamash 1.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,600 kB
  • sloc: ansic: 65,320; sh: 8,982; perl: 5,127; makefile: 250; sed: 16
file content (15 lines) | stat: -rwxr-xr-x 169 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

exec 2>&1

set -e

test_mean() {
  assertEquals "5.5" $(seq 10 | datamash mean 1)
}

test_sum() {
  assertEquals "55" $(seq 10 | datamash sum 1)
}

. shunit2