Skip to content

Commit cbfb82f

Browse files
committed
refac(test_s report): tighten variable scope
1 parent f30fd6b commit cbfb82f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/sourcery/test_s.f90

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@
55
contains
66

77
module procedure report
8-
integer i
98

109
associate(me => this_image())
1110
if (me==1) print *, new_line('a'), test%subject()
1211
associate(test_results => test%results())
1312
associate(num_tests => size(test_results))
1413
tests = tests + num_tests
1514
if (me==1) then
16-
do i=1,num_tests
17-
if (me==1) print *," ",test_results(i)%characterize()
18-
end do
15+
block
16+
integer i
17+
do i=1,num_tests
18+
if (me==1) print *," ",test_results(i)%characterize()
19+
end do
20+
end block
1921
end if
2022
block
2123
logical, allocatable :: passing_tests(:)

0 commit comments

Comments
 (0)