Skip to content

Commit bb5ae0f

Browse files
committed
Rename subroutine names
1 parent 01413f5 commit bb5ae0f

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

src/test/test_assert.F90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ program test_assert
4242

4343
! -> report
4444
call test_suite_report(test_suite_approximate)
45-
call test_case_final(test_suite_approximate)
45+
call test_suite_final(test_suite_approximate)
4646

4747
! assert_false/_true
4848
test_suite_boolean%name = 'Boolean'
@@ -59,7 +59,7 @@ program test_assert
5959

6060
! report
6161
call test_suite_report(test_suite_boolean)
62-
call test_case_final(test_suite_boolean)
62+
call test_suite_final(test_suite_boolean)
6363

6464
! assert_equal
6565
test_suite_equal%name = 'Equal'
@@ -99,7 +99,7 @@ program test_assert
9999
call assert_equal(reshape([1.0D0, 1.0D0, 1.0D0, 1.0D0], [2, 2]), reshape([1.0D0, 1.0D0, 1.0D0, 1.0D0], [2, 2]), suite=test_suite_equal)
100100

101101
call test_suite_report(test_suite_equal)
102-
call test_case_final(test_suite_equal)
102+
call test_suite_final(test_suite_equal)
103103

104104
! assert_great_than
105105
test_suite_great_than%name = 'great_then'
@@ -121,6 +121,6 @@ program test_assert
121121

122122
! report
123123
call test_suite_report(test_suite_great_than)
124-
call test_case_final(test_suite_great_than)
124+
call test_suite_final(test_suite_great_than)
125125

126126
end program test_assert

src/test_case_mod.F90

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ module test_case_mod
77

88
private
99

10-
public test_case_init
10+
public test_suite_init
11+
public test_suite_final
12+
public test_suite_report
1113
public test_case_create
1214
public test_case_append_assert
1315
public test_case_report
14-
public test_suite_report
15-
public test_case_final
1616
public test_suite_type
1717

1818
type assert_result_type
@@ -46,13 +46,15 @@ module test_case_mod
4646

4747
contains
4848

49-
subroutine test_case_init()
49+
subroutine test_suite_init(name)
50+
51+
character(*), intent(in) :: name
5052

51-
default_test_suite%name = "Default test suite"
53+
default_test_suite%name = name
5254

53-
end subroutine test_case_init
55+
end subroutine test_suite_init
5456

55-
subroutine test_case_final(suite)
57+
subroutine test_suite_final(suite)
5658

5759
type(test_suite_type), optional, target :: suite
5860
type(test_suite_type), pointer :: dummy_suite
@@ -81,7 +83,7 @@ subroutine test_case_final(suite)
8183
end do
8284
nullify(dummy_suite%test_case_tail)
8385

84-
end subroutine test_case_final
86+
end subroutine test_suite_final
8587

8688
subroutine test_case_create(name, suite)
8789

0 commit comments

Comments
 (0)