Skip to content

Commit

Permalink
Remove some superfluous allocatable attributes (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
aradi authored Jun 29, 2024
1 parent ac52445 commit d49d884
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions example/fixtured_suite_tests.f90
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module fixtured_suite_tests
public :: get_fixtured_suite_tests


! Test suite containing data initialized through the set_up() procedures
! Test suite containing data initialized through the set_up() procedure
type, extends(serial_suite_base) :: random_test_suite
integer :: nn = -1
contains
Expand All @@ -29,7 +29,7 @@ module fixtured_suite_tests

contains

! Overrides run procedure to pass hosting suite's to test procedure
! Overrides run procedure to pass hosting suite's data to test procedure
procedure :: run => random_test_case_run

end type random_test_case
Expand Down
3 changes: 1 addition & 2 deletions src/fortuno_serial/serialcase.f90
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ end subroutine serial_case_proc
function serial_case_item(name, proc) result(testitem)
character(len=*), intent(in) :: name
procedure(serial_case_proc) :: proc
type(test_item), allocatable :: testitem
type(test_item) :: testitem

allocate(testitem)
testitem%item = serial_case(name=name, proc=proc)

end function serial_case_item
Expand Down
3 changes: 1 addition & 2 deletions src/fortuno_serial/serialsuite.f90
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ module fortuno_serial_serialsuite
function serial_suite_item(name, items) result(testitem)
character(*), intent(in) :: name
type(test_item), intent(in) :: items(:)
type(test_item), allocatable :: testitem
type(test_item) :: testitem

allocate(testitem)
testitem%item = serial_suite(name=name, items=items)

end function serial_suite_item
Expand Down

0 comments on commit d49d884

Please sign in to comment.