tests/testthat/test_hi.R

test_that("hi() start a conversation", {
    expect_identical(
        hi("world"),
        "hello WORLD you have 5 letters in your name!"
    )
    expect_identical(
        hi("world","whisper"),
        "hello world you have 5 letters in your name!"
    )
    expect_error(
        hi("world",how="murmur"))
})
ziqiangc/Elbo documentation built on May 4, 2019, 11:23 p.m.