comparison scripts/test/basename.test @ 694:786841fdb1e0

Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring.
author Rob Landley <rob@landley.net>
date Tue, 13 Nov 2012 17:14:08 -0600
parents dd24f86d5ad5
children
comparison
equal deleted inserted replaced
693:4a5a250e0633 694:786841fdb1e0
5 #testing "name" "command" "result" "infile" "stdin" 5 #testing "name" "command" "result" "infile" "stdin"
6 6
7 # Removal of extra /'s 7 # Removal of extra /'s
8 testing "basename /-only" "basename ///////" "/\n" "" "" 8 testing "basename /-only" "basename ///////" "/\n" "" ""
9 testing "basename trailing /" "basename a//////" "a\n" "" "" 9 testing "basename trailing /" "basename a//////" "a\n" "" ""
10 testing "basename combined" "basename /////a///b///c///d/////" "d\n" "" "" 10 testing "basename combined" "basename /////a///b///c///d/////" "d\n" "" ""
11 11
12 # Standard suffix behavior. 12 # Standard suffix behavior.
13 testing "basename suffix" "basename a/b/c/d.suffix .suffix" "d\n" "" "" 13 testing "basename suffix" "basename a/b/c/d.suffix .suffix" "d\n" "" ""
14 14
15 # A suffix cannot be the entire result. 15 # A suffix cannot be the entire result.