tests/testthat/test-Tay.R

test_that("neural networks don't generate with empty list or lists of size less than 2", {
  Tay("exp", 3, 2.1, 0.1) |> expect_no_error()
  Tay("cos", 3, 2.1, 0.1) |> expect_no_error()
  Tay("sin", 3, 2.1, 0.1) |> expect_no_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.