tests/testthat/test-arithmetic.R

# fmt: skip
test_that("alises are correct", {
  expect_identical(add,         `+`)
  expect_identical(subtract,    `-`)
  expect_identical(multiply,    `*`)
  expect_identical(divide,      `/`)
  expect_identical(raise_power, `^`)
  expect_identical(remainder,   `%%`)
  expect_identical(divide_int,  `%/%`)
})

Try the fuj package in your browser

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

fuj documentation built on June 8, 2025, 10:23 a.m.