File: test-pkg_examples.R

package info (click to toggle)
r-cran-rcppprogress 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 216 kB
  • sloc: cpp: 490; sh: 13; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
source("wrap_examples.R")

context('RcppProgressExample sequential\n')

.test_sequential <- function() {
  expect_error(test_sequential(nb = 500), NA)
}
test_that("test_sequential", .test_sequential())


context('RcppProgressExample multithreaded\n')
.test_multithreaded <- function() {
  expect_error(test_multithreaded(nb = 1000, threads = 4), NA)
}
test_that("test_multithreaded", .test_multithreaded())


context('RcppProgressArmadillo multithreaded\n')
.amardillo_multithreaded <- function() {
  expect_error(amardillo_multithreaded(nb = 1000, threads = 4), NA)
}
test_that("amardillo_multithreaded", .amardillo_multithreaded())



context('RcppProgressETA:custom progress bar\n')
.eta_progress_bar <- function() {
  expect_error(eta_progress_bar(nb = 1000), NA)
}
test_that("eta_progress_bar", .eta_progress_bar())