Skip to content

Commit 2d007f1

Browse files
committed
Rename test_distribution_PRNG -> test_random
1 parent a7c4c8d commit 2d007f1

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/tests/stats/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ADDTEST(moment)
2727
ADDTEST(rawmoment)
2828
ADDTEST(var)
2929
ADDTEST(varn)
30-
ADDTEST(distribution_PRNG)
30+
ADDTEST(random)
3131
ADDTEST(distribution_uniform)
3232

3333
if(DEFINED CMAKE_MAXIMUM_RANK)

src/tests/stats/Makefile.manual

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ SRCGEN = $(SRCFYPP:.fypp=.f90)
88
$(SRCGEN): %.f90: %.fypp common.fypp
99
fypp $(FYPPFLAGS) $< $@
1010

11-
PROGS_SRC = $(SRCGEN) test_mean.f90 test_moment.f90 test_var.f90 \
12-
test_distribution_PRNG.f90
11+
PROGS_SRC = $(SRCGEN) test_mean.f90 test_moment.f90 test_var.f90 test_random.f90
1312

1413
include ../Makefile.manual.test.mk

src/tests/stats/test_random.f90

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
module test_stats_distribution_prng
1+
module test_stats_random
22
use stdlib_kinds, only: int8, int16, int32, int64
33
use stdlib_random, only : random_seed, dist_rand
44
use stdlib_test, only: new_unittest, unittest_type, error_type, check
55

66
implicit none
77

88
private
9-
public :: collect_stats_distribution_prng
9+
public :: collect_stats_random
1010

1111
contains
1212

1313
!> Collect all exported unit tests
14-
subroutine collect_stats_distribution_prng(testsuite)
14+
subroutine collect_stats_random(testsuite)
1515
!> Collection of tests
1616
type(unittest_type), allocatable, intent(out) :: testsuite(:)
1717

@@ -23,7 +23,7 @@ subroutine collect_stats_distribution_prng(testsuite)
2323
new_unittest("random_rand_iint64", test_random_rand_iint8) &
2424
]
2525

26-
end subroutine collect_stats_distribution_prng
26+
end subroutine collect_stats_random
2727

2828
subroutine test_random_seed(error)
2929
!> Error handling
@@ -104,13 +104,13 @@ subroutine test_random_rand_iint64(error)
104104
call check(error, all(res == ans))
105105
end subroutine test_random_rand_iint64
106106

107-
end module test_stats_distribution_prng
107+
end module test_stats_random
108108

109109

110110
program tester
111111
use iso_fortran_env, only: error_unit
112112
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
114114
implicit none
115115

116116
integer :: stat, is
@@ -120,7 +120,7 @@ program tester
120120
stat = 0
121121

122122
testsuites = [ &
123-
new_testsuite("stats_distribution_prng", collect_stats_distribution_prng) &
123+
new_testsuite("stats_random", collect_stats_random) &
124124
]
125125

126126
do is = 1, size(testsuites)

0 commit comments

Comments
 (0)