tests/e2e/app-files/test-say_hello.R

box::use(testthat[describe, expect_identical, it], )

box::use(app/logic/say_hello[say_hello], )

describe("say_hello()", {
  it("should say hello with the correct name", {
    expect_identical(say_hello("Rhino"), "Hello, Rhino!")
  })
})

Try the rhino package in your browser

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

rhino documentation built on Sept. 20, 2024, 5:10 p.m.