tests/testthat/test_read.txt.R

test_that( "read text file", {

  expect_equal(
    read.txt( 
      test_file( 'some-text.txt' )
    ),
    'This is some text 530.'
  )

})
oliver-wyman-actuarial/easyR documentation built on Jan. 27, 2024, 4:35 a.m.