@@ -91,11 +91,11 @@ get_first_and_last_core_module_summaries() {
9191 local expected=(' From the core framework library:'
9292 " ${CORE_MODULES[@]/#/ } "
9393 ' '
94- ' From the installed plugin libraries:'
95- " ${TEST_PLUGIN_MODULES[@]/#/ } "
96- ' '
9794 ' From the project library:'
9895 " ${TEST_PROJECT_MODULES[@]/#/ } "
96+ ' '
97+ ' From the installed plugin libraries:'
98+ " ${TEST_PLUGIN_MODULES[@]/#/ } "
9999 )
100100
101101 run " $TEST_GO_SCRIPT " modules
@@ -104,8 +104,8 @@ get_first_and_last_core_module_summaries() {
104104
105105@test " $SUITE : list using glob, all modules" {
106106 local expected=(" ${CORE_MODULES[@]} "
107- " ${TEST_PLUGIN_MODULES[@]} "
108107 " ${TEST_PROJECT_MODULES[@]} "
108+ " ${TEST_PLUGIN_MODULES[@]} "
109109 )
110110
111111 run " $TEST_GO_SCRIPT " modules ' *'
@@ -138,17 +138,17 @@ get_first_and_last_core_module_summaries() {
138138 assert_output_matches " ${CORE_MODULES[0]} +${CORE_MODULES_PATHS[0]} " $' \n '
139139 assert_output_matches " $LAST_CORE_MODULE +$LAST_CORE_MODULE_PATH " $' \n\n '
140140
141+ # Note the padding is relative to only the project modules.
142+ assert_output_matches $' _frobozz scripts/lib/_frobozz\n '
143+ assert_output_matches $' _frotz scripts/lib/_frotz\n\n '
144+
141145 # Note the padding is relative to only the plugin modules. Use a variable to
142- # keep the assertion lines under 80 columns.
146+ # keep the assertion lines under 80 columns. Bats trims the last newline of
147+ # the output.
143148 local plugins=' scripts/plugins'
144149 assert_output_matches " _bar/_plugh $plugins /_bar/lib/_plugh" $' \n '
145150 assert_output_matches " _foo/_quux $plugins /_foo/lib/_quux" $' \n '
146- assert_output_matches " _foo/_xyzzy $plugins /_foo/lib/_xyzzy" $' \n\n '
147-
148- # Note the padding is relative to only the project modules. Bats trims
149- # the last newline of the output.
150- assert_output_matches $' _frobozz scripts/lib/_frobozz\n '
151- assert_output_matches " _frotz scripts/lib/_frotz$"
151+ assert_output_matches " _foo/_xyzzy $plugins /_foo/lib/_xyzzy$"
152152
153153 # Since the 'lines' array doesn't contain blank lines, we only add '3' to
154154 # account for the 'From the...' line starting each class section.
@@ -167,15 +167,15 @@ get_first_and_last_core_module_summaries() {
167167 assert_output_matches \
168168 $' \n ' " $LAST_CORE_MODULE +$LAST_CORE_MODULE_PATH " $' \n '
169169 assert_output_matches \
170- $' \n _bar/_plugh +scripts/plugins/_bar/ lib/_plugh \n '
170+ $' \n _frobozz +scripts/lib/_frobozz \n '
171171 assert_output_matches \
172- $' \n _foo/_quux +scripts/plugins/_foo/ lib/_quux \n '
172+ $' \n _frotz +scripts/lib/_frotz \n '
173173 assert_output_matches \
174- $' \n _foo/_xyzzy +scripts/plugins/_foo /lib/_xyzzy \n '
174+ $' \n _bar/_plugh +scripts/plugins/_bar /lib/_plugh \n '
175175 assert_output_matches \
176- $' \n _frobozz +scripts/lib/_frobozz \n '
176+ $' \n _foo/_quux +scripts/plugins/_foo/ lib/_quux \n '
177177 assert_output_matches \
178- $' \n _frotz +scripts/lib/_frotz $'
178+ $' \n _foo/_xyzzy +scripts/plugins/_foo/ lib/_xyzzy $'
179179
180180 assert_equal " $TOTAL_NUM_MODULES " " ${# lines[@]} "
181181}
@@ -189,15 +189,15 @@ get_first_and_last_core_module_summaries() {
189189 assert_output_matches " ${CORE_MODULES[0]} +$FIRST_CORE_MOD_SUMMARY " $' \n '
190190 assert_output_matches " $LAST_CORE_MODULE +$LAST_CORE_MOD_SUMMARY " $' \n\n '
191191
192- # Note the padding is relative to only the plugin modules.
193- assert_output_matches $' _bar/_plugh Summary for _bar/_plugh\n '
194- assert_output_matches $' _foo/_quux Summary for _foo/_quux\n '
195- assert_output_matches $' _foo/_xyzzy Summary for _foo/_xyzzy\n\n '
192+ # Note the padding is relative to only the project modules.
193+ assert_output_matches $' _frobozz Summary for _frobozz\n '
194+ assert_output_matches $' _frotz Summary for _frotz\n '
196195
197- # Note the padding is relative to only the project modules. Bats trims
196+ # Note the padding is relative to only the plugin modules. Bats trims
198197 # the last newline of the output.
199- assert_output_matches $' _frobozz Summary for _frobozz\n '
200- assert_output_matches " _frotz Summary for _frotz$"
198+ assert_output_matches $' _bar/_plugh Summary for _bar/_plugh\n '
199+ assert_output_matches $' _foo/_quux Summary for _foo/_quux\n '
200+ assert_output_matches ' _foo/_xyzzy Summary for _foo/_xyzzy$'
201201
202202 # Since the 'lines' array doesn't contain blank lines, we only add '3' to
203203 # account for the 'From the...' line starting each class section.
@@ -214,18 +214,18 @@ get_first_and_last_core_module_summaries() {
214214 get_first_and_last_core_module_summaries
215215 assert_output_matches " ${CORE_MODULES[0]} +$FIRST_CORE_MOD_SUMMARY " $' \n '
216216 assert_output_matches " $LAST_CORE_MODULE +$LAST_CORE_MOD_SUMMARY " $' \n '
217+ assert_output_matches $' _frobozz +Summary for _frobozz\n '
218+ assert_output_matches $' _frotz +Summary for _frotz\n '
217219 assert_output_matches $' _bar/_plugh +Summary for _bar/_plugh\n '
218220 assert_output_matches $' _foo/_quux +Summary for _foo/_quux\n '
219- assert_output_matches $' _foo/_xyzzy +Summary for _foo/_xyzzy\n '
220- assert_output_matches $' _frobozz +Summary for _frobozz\n '
221- assert_output_matches $' _frotz +Summary for _frotz$'
221+ assert_output_matches $' _foo/_xyzzy +Summary for _foo/_xyzzy$'
222222
223223 assert_equal " $TOTAL_NUM_MODULES " " ${# lines[@]} "
224224}
225225
226226@test " $SUITE : list only test modules" {
227227 run " $TEST_GO_SCRIPT " modules ' _*'
228- assert_success " ${TEST_PLUGIN_MODULES [@]} " " ${TEST_PROJECT_MODULES [@]} "
228+ assert_success " ${TEST_PROJECT_MODULES [@]} " " ${TEST_PLUGIN_MODULES [@]} "
229229}
230230
231231@test " $SUITE : list only test project modules" {
0 commit comments