tests/testthat/test-near.R

test_that("near accepts nearby fp values", {
  expect_true(near(sqrt(2)^2, 2))
})

Try the dplyr package in your browser

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

dplyr documentation built on Feb. 3, 2026, 9:08 a.m.