R Under development (unstable) (2024-05-16 r86559 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > > library(PRNG) Attaching package: 'PRNG' The following objects are masked from 'package:stats': rcauchy, rexp, rnorm, time > > library(testthat) > > test_check("PRNG") [ FAIL 5 | WARN 0 | SKIP 0 | PASS 6 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-all.R:15:3'): Independence Test ────────────────────────────── abs(autocorr_result$acf[2]) < 0.05 is not TRUE `actual`: FALSE `expected`: TRUE Consecutive random numbers are not independent. ── Failure ('test-all.R:35:3'): Edge Cases Test ──────────────────────────────── `runf(n = -10)` did not throw the expected error. ── Failure ('test-all.R:36:3'): Edge Cases Test ──────────────────────────────── `runf(n = 0)` did not throw the expected error. ── Failure ('test-all.R:55:3'): Boundary Tests ───────────────────────────────── `runf(n = 100, x00 = -1)` did not throw the expected error. ── Failure ('test-all.R:56:3'): Boundary Tests ───────────────────────────────── `runf(n = 100, a1 = 5)` did not throw the expected error. [ FAIL 5 | WARN 0 | SKIP 0 | PASS 6 ] Error: Test failures Execution halted