Skip to content

Commit dd3fb3a

Browse files
committed
build: rm external assert lib dependence
1 parent 3b5c974 commit dd3fb3a

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

manifest/fpm.toml.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ copyright = "2021-2024 UC Regents"
77

88
[dev-dependencies]
99
julienne = {git = "https://github.com/berkeleylab/julienne.git", tag = "1.5.3"}
10-
assert = {git = "https://github.com/berkeleylab/assert.git", tag = "2.0.0"}
1110

1211
[build]

test/main.F90

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
! Copyright (c) 2020-2024, The Regents of the University of California
22
! Terms of use are as specified in LICENSE.txt
3-
4-
#include "assert_macros.h"
5-
63
program main
74
!! Test the Caffeine implementation of the Parallel Runtime Interface for Fortran (PRIF)
8-
use assert_m
95
use iso_c_binding, only : c_bool
106
use julienne_m, only : command_line_t, GitHub_CI
117
use prif, only : &
@@ -34,7 +30,6 @@ program main
3430

3531
call stop_and_print_usage_info_if_help_requested
3632
call prif_init(stat=init_status)
37-
call_assert(init_status==successful)
3833
call run_tests_and_report(passes, tests)
3934
call prif_this_image_no_coarray(this_image=me)
4035
if (me==1) print "(a,*(a,G0))", new_line(''), "_________ In total, ",passes," of ",tests, " tests pass. _________"

test/prif_co_reduce_test_m.F90

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
! Terms of use are as specified in LICENSE.txt
33

44
#include "language-support.F90"
5-
#include "assert_macros.h"
65

76
module prif_co_reduce_test_m
87
!! Unit test fort the prif_init program inititation subroutine
9-
use assert_m
108
use prif, only : prif_co_reduce, prif_num_images, prif_this_image_no_coarray, prif_error_stop, prif_co_max
119
use prif_test_m, only : prif_test_t, test_description_substring
1210
use iso_c_binding, only : c_bool, c_funloc, c_char, c_double, c_int64_t
@@ -101,7 +99,7 @@ function alphabetically_first_string() result(test_passes)
10199
pure function alphabetize(lhs, rhs) result(first_alphabetically)
102100
character(len=*), intent(in) :: lhs, rhs
103101
character(len=len(lhs)) first_alphabetically
104-
call_assert(len(lhs) == len(rhs))
102+
if (len(lhs) /= len(rhs)) call prif_error_stop(quiet=.false., stop_code_char="argument size mismatchin in function alphabetize")
105103
first_alphabetically = min(lhs,rhs)
106104
end function
107105

0 commit comments

Comments
 (0)