Skip to content

Issue with stdlib_sorting #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 13, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
issue_sorting: cannot reproduce an issue
  • Loading branch information
jvdp1 committed Jun 5, 2021
commit 11dd0e17964958c95ef28c8c817992d454968936
13 changes: 12 additions & 1 deletion src/tests/sorting/test_sorting.f90
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ program test_sorting
integer(int32), parameter :: char_size = 26**4
integer(int32), parameter :: string_size = 26**3
integer(int32), parameter :: block_size = test_size/6
integer, parameter :: repeat = 8
integer, parameter :: repeat = 1

integer(int32) :: &
blocks(0:test_size-1), &
Expand Down Expand Up @@ -202,6 +202,17 @@ subroutine test_int_ord_sorts( ltest )
call test_int_ord_sort( rand10, "Random 10", ldummy )
ltest = (ltest .and. ldummy)


block
integer(int64) :: i
integer, allocatable :: d1(:)
d1 = [10, 2, -3, -4, 6, -6, 7, -8, 9, 0, 1, 20]
call ord_sort( d1)
call verify_sort( d1, ldummy, i )
ltest = (ltest .and. ldummy)
end block


end subroutine test_int_ord_sorts


Expand Down