• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3[ -f testing.sh ] && . testing.sh
4
5#testing "name" "command" "result" "infile" "stdin"
6
7testing "" "tr 1 2" "223223223" "" "123123123"
8testing "-d" "tr -d 1" "232323" "" "123123123"
9testing "-s" "tr -s 1" "12223331222333" "" "111222333111222333"
10
11testing "no pathological flushing" "seq 10000000 | tr 1 2 > /dev/null" "" "" ""
12