tests/testthat/test-Etr.R

test_that("neural networks don't generate with empty list or lists of size less than 2", {
  8 |>
    Trp() |>
    expect_no_error()
  -4 |>
    Trp() |>
    expect_error()

  Etr(4, 0.1) |> expect_no_error()
  Etr(0, 0.1) |> expect_error()
  Etr(4, 0) |> expect_error()
})

Try the nnR package in your browser

Any scripts or data that you put into this service are public.

nnR documentation built on May 29, 2024, 2:02 a.m.