1
- module test_stats_distribution_prng
1
+ module test_stats_random
2
2
use stdlib_kinds, only: int8, int16, int32, int64
3
3
use stdlib_random, only : random_seed , dist_rand
4
4
use stdlib_test, only: new_unittest, unittest_type, error_type, check
5
5
6
6
implicit none
7
7
8
8
private
9
- public :: collect_stats_distribution_prng
9
+ public :: collect_stats_random
10
10
11
11
contains
12
12
13
13
! > Collect all exported unit tests
14
- subroutine collect_stats_distribution_prng (testsuite )
14
+ subroutine collect_stats_random (testsuite )
15
15
! > Collection of tests
16
16
type (unittest_type), allocatable , intent (out ) :: testsuite(:)
17
17
@@ -23,7 +23,7 @@ subroutine collect_stats_distribution_prng(testsuite)
23
23
new_unittest(" random_rand_iint64" , test_random_rand_iint8) &
24
24
]
25
25
26
- end subroutine collect_stats_distribution_prng
26
+ end subroutine collect_stats_random
27
27
28
28
subroutine test_random_seed (error )
29
29
! > Error handling
@@ -104,13 +104,13 @@ subroutine test_random_rand_iint64(error)
104
104
call check(error, all (res == ans))
105
105
end subroutine test_random_rand_iint64
106
106
107
- end module test_stats_distribution_prng
107
+ end module test_stats_random
108
108
109
109
110
110
program tester
111
111
use iso_fortran_env, only: error_unit
112
112
use stdlib_test, only: new_testsuite, run_testsuite, testsuite_type
113
- use test_stats_distribution_prng , only: collect_stats_distribution_prng
113
+ use test_stats_random , only: collect_stats_random
114
114
implicit none
115
115
116
116
integer :: stat, is
@@ -120,7 +120,7 @@ program tester
120
120
stat = 0
121
121
122
122
testsuites = [ &
123
- new_testsuite(" stats_distribution_prng " , collect_stats_distribution_prng ) &
123
+ new_testsuite(" stats_random " , collect_stats_random ) &
124
124
]
125
125
126
126
do is = 1 , size (testsuites)
0 commit comments