@@ -31,16 +31,13 @@ expected=" <this is a test>"
31
31
32
32
echo " testing args:"
33
33
# run_output "$expected" ./center.py " <this is a test> "
34
- hr
35
34
36
35
echo " testing stdin:"
37
36
run_output " $expected " ./center.py <<< " <this is a test>"
38
- hr
39
37
40
38
expected=" <this is a test>"
41
39
echo " testing multi-args:"
42
40
run_output " $expected " ./center.py " <this" is a " test> "
43
- hr
44
41
45
42
46
43
# ##########
@@ -49,21 +46,17 @@ expected="# this is a test"
49
46
50
47
echo " testing args with # prefix:"
51
48
run_output " $expected " ./center.py " # this is a test "
52
- hr
53
49
54
50
echo " testing stdin with # prefix:"
55
51
run_output " $expected " ./center.py <<< " # this is a test"
56
- hr
57
52
58
53
expected=" // this is a test"
59
54
60
55
echo " testing args with // prefix:"
61
56
run_output " $expected " ./center.py " // this is a test "
62
- hr
63
57
64
58
echo " testing stdin with // prefix:"
65
59
run_output " $expected " ./center.py <<< " // this is a test"
66
- hr
67
60
68
61
# ##########
69
62
# comment handling disabled
87
80
88
81
echo " testing stdin with # prefix with comment handling disabled:"
89
82
run_output " $expected " ./center.py -n <<< " # this is a test"
90
- hr
91
83
92
84
expected=" // this is a test"
93
85
109
101
110
102
echo " testing stdin with // prefix:"
111
103
run_output " $expected " ./center.py -n <<< " // this is a test"
112
- hr
113
104
114
105
# ######################
115
106
# space in middle tests
134
125
135
126
echo " testing spacing with stdin:"
136
127
run_output " $expected " ./center.py -s <<< " <this is a test> "
137
- hr
138
128
139
129
echo
140
130
echo " Completed $run_count tests"
0 commit comments