blob: a00753847a4acfb6b7da0adfbdc2e486bb24576e [file] [log] [blame]
#!/bin/bash
[ -f testing.sh ] && . testing.sh
#testing "name" "command" "result" "infile" "stdin"
testing "dirname /-only" "dirname ///////" "/\n" "" ""
testing "dirname trailing /" "dirname a//////" ".\n" "" ""
testing "dirname combined" "dirname /////a///b///c///d/////" "/////a///b///c\n" "" ""
testing "dirname /a/" "dirname /////a///" "/\n" "" ""