Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion fpm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ test-drive.git = "https://github.com/JorgeG94/test-drive"
[extra.fortitude.check]
select = ["C", "E", "S"]
ignore = ["C003", "C072"]
line-length = 132
line-length = 178
extend-exclude = ["benchmarks", "test"]
4 changes: 2 additions & 2 deletions src/lib/core/sort/pic_sorting_radix_sort.f90
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ pure module subroutine int32_radix_sort(array, work, reverse)
end subroutine int32_radix_sort

module subroutine sp_radix_sort(array, work, reverse)
use iso_c_binding, only: c_loc, c_f_pointer
use, intrinsic :: iso_c_binding, only: c_loc, c_f_pointer
real(kind=sp), dimension(:), intent(inout), target :: array
real(kind=sp), dimension(:), intent(inout), target, optional :: work
logical, intent(in), optional :: reverse
Expand Down Expand Up @@ -339,7 +339,7 @@ pure module subroutine int64_radix_sort(array, work, reverse)
end subroutine int64_radix_sort

module subroutine dp_radix_sort(array, work, reverse)
use iso_c_binding, only: c_loc, c_f_pointer
use, intrinsic :: iso_c_binding, only: c_loc, c_f_pointer
real(kind=dp), dimension(:), intent(inout), target :: array
real(kind=dp), dimension(:), intent(inout), target, optional :: work
logical, intent(in), optional :: reverse
Expand Down
3 changes: 2 additions & 1 deletion src/lib/core/strings/pic_string_type.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,8 @@ end subroutine read_formatted
!> We deeply trust in the compiler to inline and optimize this piece of code away.
elemental subroutine unused_dummy_argument(dummy)
class(*), intent(in) :: dummy
associate (dummy => dummy); end associate
associate (dummy => dummy)
end associate
end subroutine unused_dummy_argument

!> Safely return the character sequences represented by the string
Expand Down
2 changes: 1 addition & 1 deletion src/lib/core/strings/pic_strings.f90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module pic_strings
use pic_string_type, only: string_type, char, verify, repeat, slen, len_trim, move
use pic_optional_value, only: pic_optional
use pic_types, only: sp, dp, int32, int64, fbool
use iso_c_binding, only: c_null_char, c_char
use, intrinsic :: iso_c_binding, only: c_null_char, c_char
implicit none
private

Expand Down
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ target_link_libraries(
"${project_name}-tester" PRIVATE "${main_lib}" "${core_lib}"
test-drive::test-drive)

message(STATUS "Adding the following tests to ctests...")
# message(STATUS "Adding the following tests to ctests...")
foreach(t IN LISTS tests)
message(STATUS "${project_name}/${t} ${project_name}-tester ${t}")
# message(STATUS "${project_name}/${t} ${project_name}-tester ${t}")
add_test("${project_name}/${t}" "${project_name}-tester" "${t}")
endforeach()
39 changes: 26 additions & 13 deletions test/test_pic_ascii.f90
Original file line number Diff line number Diff line change
Expand Up @@ -764,19 +764,32 @@ elemental logical function validate(ascii_code, func)
c = achar(ascii_code)

select case (func)
case (1); validate = is_control(c)
case (2); validate = is_printable(c)
case (3); validate = is_white(c)
case (4); validate = is_blank(c)
case (5); validate = is_graphical(c)
case (6); validate = is_punctuation(c)
case (7); validate = is_alphanum(c)
case (8); validate = is_alpha(c)
case (9); validate = is_upper(c)
case (10); validate = is_lower(c)
case (11); validate = is_digit(c)
case (12); validate = is_hex_digit(c)
case default; validate = .false.
case (1)
validate = is_control(c)
case (2)
validate = is_printable(c)
case (3)
validate = is_white(c)
case (4)
validate = is_blank(c)
case (5)
validate = is_graphical(c)
case (6)
validate = is_punctuation(c)
case (7)
validate = is_alphanum(c)
case (8)
validate = is_alpha(c)
case (9)
validate = is_upper(c)
case (10)
validate = is_lower(c)
case (11)
validate = is_digit(c)
case (12)
validate = is_hex_digit(c)
case default
validate = .false.
end select
end function validate

Expand Down
Loading