aboutsummaryrefslogtreecommitdiff
path: root/tests/dirname.test
blob: 3ea891977ee2c445e89105b7d379bf101c4c02d5 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

[ -f testing.sh ] && . testing.sh

#testing "name" "command" "result" "infile" "stdin"

testing "/-only" "dirname ///////" "/\n" "" ""
testing "trailing /" "dirname a//////" ".\n" "" ""
testing "combined" "dirname /////a///b///c///d/////" "/////a///b///c\n" "" ""
testing "/a/" "dirname /////a///" "/\n" "" ""